Home » Questions » Computers [ Ask a new question ]

Run minimized batch file from scheduler

Run minimized batch file from scheduler

I added a batch file to the Windows 7 scheduler and it works fine. The problem is it always displays a command prompt window when it is run. I created a shortcut for the batch file and set it to run minimized in properties.

Asked by: Guest | Views: 301
Total answers/comments: 1
Guest [Entry]

"You need to tell the batch file to run without a console.

This page has some instructions for writing a Windows Script:

Set Shell = CreateObject(""WScript.Shell"")
Shell.Run <Path to command or batch file>, 0, False

It also mentions a tool called hstart - which I haven't seen before, so you'd need to check it out.

This question on Stack Overflow has some other suggestions as well as full instructions for writing a vb script to wrap the code I posted above."