Scheduled batch file not running interactively

  • Thread starter Thread starter Matthew Sielski
  • Start date Start date
M

Matthew Sielski

I created a simple scheduled task on a Windows 2000 workstation the
other day to backup some files to a Zip drive. The problem is that
although I can get batch files to run (as scheduled, or by right
clicking and picking run from the scheduled tasks folder) I cannot get
them to run interactively. If the batch file is:

@echo off
echo this is a test
pause
echo done

it will run hidden and have to be killed with task manager. Nothing
ever displays at all. This is not the case on other computers (it
works as expected on them). On the problem computer, if I have the
batch file delete a file or append to a log file, but require no
interaction, it will work. My problem is that I need to prompt the
user to insert a specific backup disk and then hit enter, and then
continue. I recall something about AT having an "interactive" flag,
but I am using Scheduled Tasks and see nothing like this.


Any help would be appreciated.
Thanks!

Matt Sielski
 
You must run the task under the same account/password
as the user's foreground session.

Alternatively you can schedule it with at.exe, and use the
/interactive switch. If you do then remember that the task
will run under the System account. This account has no
access to networked resources.
 
Back
Top