Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduled tasks AND backgound dos shell

Status
Not open for further replies.

lupien1

Programmer
Mar 1, 2005
34
CA
I have a dos batch (.bat) file working fine and doing these tasks:

1- preparing files
2- launch a console program (DOS program)
3- copying result files

I use scheduled tasks to launch the batch file each 10 minutes. The automatic launch is worwing fine, but i would like the DOS shell windows to run in background.
 
Thank you bcaster,

I try:

filespec="d:\123\abc.bat" '< edit the location & name
createobject("wscript.shell").run chr(34) & filespec & chr(34), 0, false

After telling Norton to accept to run once, the batchfile run in background. That's what i was looking for, but i need to install this scheduled tasks at a client place where computer security is very high. So i don't think they will accept to let vbs running or the cmdow to be install.

I made a link to my batchfile and set the RUN properties of the link to MINIMIZED. When the link is launch manually, everything is done in background (OK). When i ask scheduled task to launch the link, it does not respect the link properties and the DOS windows still appear.

If you have any other suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top