How do you make a .BAT file run invisible in Scheduled Tasks

C

Chris Petersen

I have a scheduled BAT file that runs every 10 min, is there a way I
can set it up so that the window doesn't pop up on my desktop?

OS: XP Pro
Run syntax: C:\Work\02HDsize.cmd /c

Thanks in advance
 
T

Torgeir Bakken (MVP)

Chris said:
I have a scheduled BAT file that runs every 10 min, is there a way I
can set it up so that the window doesn't pop up on my desktop?

OS: XP Pro
Run syntax: C:\Work\02HDsize.cmd /c

Thanks in advance

Run your cmd file from a vbscript file.

In the scheduler, use wscript.exe as executable ant the path to the vbscript
file as parameter.


Put this in a file with file extension .vbs:


Set oShell = CreateObject("Wscript.Shell")
oShell.Run "C:\Work\02HDsize.cmd /c", 0, True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top