1
i created a .bat script to perform daily folder compression. it is working fine when i double click the .bat file. However, it doesnt work when i include it in window scheduler.
Below is the script:
rem ****************************
rem ** To create back up file **
rem ****************************
"C:\Program Files\WinZip\WINZIP32.EXE" -a -r -p "E:\Backup\Daily\sst.zip" "P:\SST\*.*"
When i run it via window scheduler, the status is always "running" but nothing is generated. Can someone explain the situation?
Try this and also make sure you've set the correct credentials.
– Vinayak – 2014-08-21T09:28:33.017With default settings task scheduler should show cmd window atleast in Windows 7. Try add pause after command line zip in bat file. Also select checkbox "Run with highest privileges" in task scheduler. You can also try to run it without bat file using arguments in task scheduler. – crazypotato – 2014-08-21T17:53:32.410
Hi, thank you for the reply. I tried both suggestions but with no luck. The task keep showing "running" but nothing is created. – user332640 – 2014-08-22T07:17:51.927
Does the user you're assigning this task to have a password? I had similar problems while configuring backup scripts for some of my clients, and (after some struggle) I discovered that the scheduler would not execute the tasks if the user had no password. – rgoliveira – 2014-10-24T06:23:28.287