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

  • Thread starter Thread starter Chris Petersen
  • Start date Start date
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
 
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
 
Back
Top