Scheduled batch file not running interactively

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
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top