Discussion Locked

Script file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've created a script file that will backup users PST file to their Personal network folder. Is there a command I could use so that the script file will only run once a week?
Appreciate any help.

3 replies

by d.thomsen

Hello,

you can use the at command (Scheduler Service):
for example:

at 08:00 /every:friday "interpreter.exe script"

This will create a scheduled task that will run interpreter.exe with the argument script every friday at 08:00

(If your script is a VBScript interpreter.exe is cscript.exe)

HTH and Best Regards,
Daniel

by jcbrito_77

I'm using a .bat file I dont think the at command works unless I'm doing it wrong.

Example:
AT EVERY:WEDNESDAY XCOPY /I /D C:\WINDOWS\MAILBOX.PST U:\mailbox.pst

This discussion is closed to new replies.