|
Answer» Hello,
I've created a batch file that uses the AT command to create a scheduled task. The scheduled task will start a program like Yahoo messenger. The problem is that when ran, the scheduled task starts the program "silently". What I mean is that the process starts, but it does not load in the tray nor does it open a window. The only way to actually use the program is to kill the process then restart manually.
What do I NEED to do different? The command looks like the following.
AT %NewTime% "C:\Program Files\Yahoo!\Messenger\YahooMessenger.exe"
NewTime is a VARIABLE that is previously DEFINED in the batch file.
I am running XP sp2.0
Thank you,
CraigI ANSWERED my own question
I needed to use the /interactive switch. The new command looks like:
AT %NewTime% /INTERACTIVE "C:\DelayedStartup.bat"
Craig OK, another question. When the Scheduled task runs (it starts a couple PROGRAMS) it runs with the user as NTAUTHORITY/SYSTEM. How can I specify a user...or can I?
Thanks,
CraigInstead of the AT commands, use SCHTASKS, with this you can specify a user.Thank you...
That helped. Do you know how to set the Start in: value when creating the task?
Craig
|