ɹəuəllıʍ ʇɐb Posted October 25, 2005 Report Share Posted October 25, 2005 I have a command script that is scheduled to run every morning to download the latest virus definitions onto a local server (original topic). Last week I installed the latest version of wget, when I noticed that the script had disappeared. Naturally, the virus definitions hadn't been updated for several weeks!After the wget upgrade I copied the batch script back into the wget folder.Today I noticed that the virus definitions were again not downloaded this morning - they were still yesterday's. Maybe some network problems this morning, or so I thought.When I tried to run the script manually, I found that it has disappeared again! :ninja: I am very, very puzzled now. How can a file just disappear from a computer - twice?The mystery is resolved! :D The script deleted itself! :blink: The script name is DAT.BAT; the script does contain a line 'del DAT*', but on a different folder, on a different networked device.But if there are network problems, then the switch to the other device will not occur, and the 'del' will delete by DAT.BAT :lol: I will now do some 'errorlevel' checking and abort the script if it cannot switch.P.S. wget put into bold markers because of this.P.P.S. why does the 'horizontal rule' tag no longer work? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.