Jump to content

Mysteriously disappearing file


Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy