| 1. |
Solve : Batch file to make backup of a folder based on time and day of week? |
|
Answer» Thank You Dusty, I tried the script at WORK and i do not know exactly was the wording of the error was, so sorry for the confusion but the taskkill wpont work because CHeckInn need to exit by pressing Exit on its menu screen so i found a program called Eventcoder and i recorded the mouse movement to click Exit and I added the path in the script to run where the Taskkill command LINE use to be and it worked perfectly. So i deleted the sleep command lines and the whole script ran perfectly. @echo off and the end of the script to this: Quote echo No>runit.dat Create the file C:\runit.dat containing just the word "Yes" without the quotes. Create the following script and save it as filename.bat: Quote @echo off Task scheduling Suggestions. =================== Schedule the main script to run at the times you want, 3 6 9 and 12 pm (note that according to the specs I extracted from your post, these times to not include any backup in Shift A which I have noted as being 4 am to 2pm daily, please confirm). Also schedule the script to start 5 mins after the above times. This will allow the script to run at the appointed hours and at five mins after those times if backup does not proceed. Schedule filename.bat to run at say 3.20 6.20 9.20 and 12.20 pm Thanks Dusty, The Backup is running good so far except i have not added the last post suggestions yet, I wanted to try it first. I a wondering is there a way to get out of screensaver when the batch file starts or say play a music file in wma format so that to bring attention of the person working? I will add script from your last post tomorrow and let you know how it goes. Thanks Again.Hi i m new to batch file can any one plz tell me the batch file making process from begning. will appericiate for helping me out. regds himHim6182 - Welcome to the CH forums. Please do NOT hijack another member's thread, start your own. Batch scripting info can be found here and there a many many on-line tutorials. Good luck |
|