Help - BAT execution from Windows Scheduler

G

Guest

Hi,
(Using Windows 2003 Enterprise Edition) Is there a way to get Windows
Scheduler to execute my BAT file in the background, instead of it opening the
command window in the foreground? When I terminal service into this machine
and manually "Run" the scheduled task, the command window opens, and I'm
afraid that if I disconnect, that process will be prematurely terminated.

Thank you,
John
 
J

Jerold Schulman

Hi,
(Using Windows 2003 Enterprise Edition) Is there a way to get Windows
Scheduler to execute my BAT file in the background, instead of it opening the
command window in the foreground? When I terminal service into this machine
and manually "Run" the scheduled task, the command window opens, and I'm
afraid that if I disconnect, that process will be prematurely terminated.

Thank you,
John

Yes. Run it in the context of a different user.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
G

Guest

Jerold Schulman said:
Yes. Run it in the context of a different user.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com

Jerold,
Thanks. Does this mean going into the job properties and changing the "Run
As" username? If I only have access to one account (my account/username),
then is there no other way to get this to run in the background? For
instance, I don't suppose there's a way to tell it to run as if it were being
run in the context of another user...

Thanks,
John
 
J

Jerold Schulman

Jerold,
Thanks. Does this mean going into the job properties and changing the "Run
As" username? If I only have access to one account (my account/username),
then is there no other way to get this to run in the background? For
instance, I don't suppose there's a way to tell it to run as if it were being
run in the context of another user...

Thanks,
John

Are you an administrator of your local computer?
If yes, create an account.
Or
Try using the AT command to schedule the job.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
G

Guest

Jerold Schulman said:
Are you an administrator of your local computer?
If yes, create an account.
Or
Try using the AT command to schedule the job.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com

I'll try to have an accout created specifically for these tasks..

Thanks,
John
 
D

Dirk

Hi,
(Using Windows 2003 Enterprise Edition) Is there a way to get Windows
Scheduler to execute my BAT file in the background, instead of it opening the
command window in the foreground? When I terminal service into this machine
and manually "Run" the scheduled task, the command window opens, and I'm
afraid that if I disconnect, that process will be prematurely terminated.

Thank you,
John
Would this help?

start /min c:\test\test.bat
 

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