![]() ![]() Everything is removed, but I need the script to exit and close the CMD window. text shows, it then reads "The Batch File cannot be found." and returns to CMD in the %TEMP% location. A cleanup script runs (From %TEMP% that removes the %TEMP\MyScript successfully, but when deleting itself, the script errors out and returns to CMD.ĮCHO = PRESS ANY KEY TO EXIT =ĭEL "%USERPROFILE%\Desktop\Link to Software Installer.lnk" > NULĪfter the Removing CleanUp Ultility. I created a script to copy the resource files needed to run the main batch script to %TEMP%\MyScript so I can run locally and not off of the flash drive, but I am having difficulty with the cleanup. 元 has reviewed this and determined that: As you supposed, the batch file should delete itself at the end of the script. ![]() I have the script itself done, but the issue is is requires a flash drive to run, and those are in short supply, especially when doing multiple PCs at once. I am attempting to create a script that will assist in select software installation from a large pool of software on newly imaged PCs. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |