It's probably something obvious but both PAUSE and WAITFOR don't seem have the functionality I needed. The batch file (windows command script) I'm making is intended to do something fairly simple. It extracts a 7zip file into the TEMP directory then starts an executable from that 7zip file. All that is not a problem, but I really wanted to add some house cleaning functionality as well. Namely, after that executable or process is closed, the script deletes the extracted content from the TEMP folder.
Also, but less importantly I was wondering if there is a way to hide the command prompt while the script & application is running, mainly so the command prompt window isn't closed while waiting for the application to end, thus missing the command to purge the TEMP files.
It isn't really intended to hide anything, this is for a flash drive with freeware utilities I'm trying to customize, deleting the files from the temp folder is actually to help me determine the functionality of a new script I make or edit. The idea is that with each run, I want the application and any other files removed so when I test an edit, I don't have to manually go in and remove them from temp to make sure the old script run isn't effecting the results of the edited or new version.
It was something I was previously doing manually, deleting the extracted files, editing the script, testing it again. This is more to help me automate the process a bit.