Stinger 0 Posted March 3, 2003 Share Posted March 3, 2003 I want to make a batch file that as soon as its opened it does what I want then it deletes itself. How would I do this? Quote Link to post Share on other sites
Tr4nC3R 0 Posted March 5, 2003 Share Posted March 5, 2003 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 . 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# Quote Link to post Share on other sites
Stinger 0 Posted March 5, 2003 Author Share Posted March 5, 2003 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] Quote Link to post Share on other sites
Super-Bob 0 Posted March 6, 2003 Share Posted March 6, 2003 You can't make a self deleting file. If a file is in use it can't be deleted, and if its running its in use. Quote Link to post Share on other sites
Stinger 0 Posted March 6, 2003 Author Share Posted March 6, 2003 Shame oh well thanks. What about make it make itself hidden after it is opened? Quote Link to post Share on other sites
RooK 0 Posted March 6, 2003 Share Posted March 6, 2003 Stinger, what your wanting sounds rather iffy... As in what trojans do to hide their presence after installation. What are your intentions? Quote Link to post Share on other sites
Stinger 0 Posted March 6, 2003 Author Share Posted March 6, 2003 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. Quote Link to post Share on other sites
Tr4nC3R 0 Posted March 6, 2003 Share Posted March 6, 2003 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 Sounds Weird LOL Trancer.......... Quote Link to post Share on other sites
Stinger 0 Posted March 6, 2003 Author Share Posted March 6, 2003 nm, too consfusing Ill just click show all hidden and system files. Too much of a pain. Thanks though Quote Link to post Share on other sites
[Wx] Force 0 Posted March 6, 2003 Share Posted March 6, 2003 (edited) 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 March 6, 2003 by -[NCM]-force Quote Link to post Share on other sites
Stinger 0 Posted March 6, 2003 Author Share Posted March 6, 2003 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. Quote Link to post Share on other sites
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.