I am trying to create a self deleting batch file to insert some registry keys at startup and reboot the machine. The batch has some admin info in it but I need the batch file to delete itself afterwords so that:
1. The admin info is deleted.
2. The computer does not continue running the batch after every start-up.
I have already tried using the del %0.bat method and it does not seem to work(maybe my syntax is wrong, so if someone has used this please let me know).
Also if anyone knows how to make a batch file wait before it performs the next command(with a time period, not a press any key function) that would also be greatly appreciated. I cannot get the TIMEOUT function to work.