User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Question About Scheduled Tasks Page [1]  
wahoowa
All American
3288 Posts
user info
edit post

Hey set up a backup service (rsync) to run M-F and the DOS box that pops up while the script is running is starting to get annoying. Is there a command I can put in the batch file to prevent the DOS box or a setting in Scheduled Tasks (Windows XP) to prevent it?

Thanks for the help.

1/26/2009 1:40:04 PM

qntmfred
retired
40726 Posts
user info
edit post

set up the task to run as a different user

1/26/2009 1:45:49 PM

wahoowa
All American
3288 Posts
user info
edit post

i tried that but rsync will not work if it is run under a different user.

1/26/2009 2:04:19 PM

philihp
All American
8349 Posts
user info
edit post

Are you on a DOS box, or are you on an XP box?

If you're on an XP box, try this:


runner.vbs
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "pinger.bat" & Chr(34), 0
Set WshShell = Nothing

pinger.bat
ping thewolfweb.com > c:\tempfile.txt



Run runner.vbs, then check for c:\tempfile.txt to be created in a few seconds. There's no sleep command in XP (that I know of), so I used "ping" to simulate a program taking a few seconds to complete.

1/26/2009 3:58:08 PM

wahoowa
All American
3288 Posts
user info
edit post

^ that .vbs script works perfectly! Thank you so much!

On a side note....do you know why .vbs does not open a DOS box but .bat does?

[Edited on January 26, 2009 at 4:47 PM. Reason : ?]

1/26/2009 4:46:09 PM

 Message Boards » Tech Talk » Question About Scheduled Tasks Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.