Jump to content
Ghost Recon.net Forums

Self Deleting Batch File..How?


Recommended Posts

I think if you want to run the batch file at any given time/date/year you can add ann entry into the scheduler to run a file ect, at a point in time. In your case this may will be your script/batch file. If this is any use, then this will also help point you in the right direction :unsure: . On a Unix box use the crontab file and edit the entries to include your script. If in your case I think 'windows' as you state 'batch' you can add an entry into the system scheduler by typing 'at' at prompt.

c:/at

Use the help information residing with this utility to help understand ###### is going on. After the file has been executed you have the facilities to delete the file once scheduler item is completed.

Adding a crontab entry is little more difficult but I feel this is irrelevant DuDe !

If you do however refer to a unix box please tell me you r conv with 'vi' LOL

If your confused thats good, because thats makes 2-of-Us.

I did this about 12m ago so I know it worked. Interested as to what the problem stems from ? :-))

Hope this helps

Kindest regards

Tr4nC3R....... ;)

::BinarY-LaBs::

#Always Happy to lend an EaR#

Link to post
Share on other sites

Thanks man, I am on Windows and I typed At /? into the cmd prompt. But it didn't give me any choices to delete at a certain time...I can tell it when to do a task but I need to know the command to delete so far I have this:

at every:date[saturday]

But I think I need a thing to tell it to actually delete itself

HEREat every:date[saturday]

Link to post
Share on other sites

Yikes I agree it does, okay for my folders in XP they are all different. And I to get to hidden files in one directory I have to see the folder to get through it in another. So I wanted the file to make the files hidden or unhidden again and then to hop to the next folder to so I can make the files in it un hidden/rehidden when I see/get what I want.

Link to post
Share on other sites

The file will delete tho if the app is not running, After your batch file runs its run and thats that it does not load its not and .exe. Is it ? Hope i'm right here, So stinger is the batch file 'script' or to change what you have detailed. Unsure of the the level here guys.

Still not sure about why your doing what your doing :ph34r:

Sounds Weird

LOL

Trancer.......... ;)

Link to post
Share on other sites

In windows xp in the classic mode ,,,there is a menu on the top left corner where you can select the hidden or not hidden feature.

so what i can gather you have a hidden file or what you looking for?

Edited by -[NCM]-force
Link to post
Share on other sites

Well there is some uhhh stuff on my puter that is made hidden by me, I know how to access it no prob but to go from one folder to another (cause they all have diff settings) I have to make unhidden each one to go the next. And I cant memorize the whole path of the file but oh well.

Link to post
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.

×
×
  • Create New...