alwayssmiling
asked on
Scheduled Task Question (may not be the right area)
Hi there,
This question is probably simple to answer, and I feel foolish asking it. I created a bat file that runs a couple of vbs scripts for a program (CoolMon2). And, I set up the scheduled task to run it every two minutes, so the information is kept up to date. The problem I'm having is, the dos prompt window comes up and stays up for the duration of the bat file.
What is the command to make it run minimized? Either the command in the scheduled task or a command to put in the bat file would be greatly appreciated.
Thanks for all of your help.
Patrick.
This question is probably simple to answer, and I feel foolish asking it. I created a bat file that runs a couple of vbs scripts for a program (CoolMon2). And, I set up the scheduled task to run it every two minutes, so the information is kept up to date. The problem I'm having is, the dos prompt window comes up and stays up for the duration of the bat file.
What is the command to make it run minimized? Either the command in the scheduled task or a command to put in the bat file would be greatly appreciated.
Thanks for all of your help.
Patrick.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
In the end, I had to create a VBScript file, as the Run as a different user wouldn't work, with scheduled tasks.
For someone else's reference (in the future), the commands I used were:
Set WshShell = WScript.CreateObject("WScr
WshShell.Run"NetStat20.vbs
WshShell.Run"externalip.vb
Works like a charm.. I don't even see the files run.. The only way I can even tell is occasionally, the External IP will disappear from CoolMon2 while the vbscript is updating.. Which is fine..
Patrick.