June 23, 200620 yr Hi AllME Add Folder For Install Copy To Drive C: .ME Need Command For End INstall Delete Folder.Thank YouSorry BAd LAng
June 24, 200620 yr Batch file:RD /S /Q "<path_to_folder>" Put it in [GuiRunOnce] or RunOnceEx or a cleanup.cmd or something.Use Google.
June 24, 200620 yr Make a "Remove.cmd" for removing folder with subfolder..RD /S /Q "Folder Path"DEL /Q /F %systemdrive%\Remove.cmdExample Of RunOnceEX.CMDREG ADD %KEY%\095 /VE /D "Removing Temporary Files and Restarting Computer" /fREG ADD %KEY%\095 /V 1 /D "%systemdrive%\WINDOWS\System32\Remove.cmd" /f[color=#FF0000]REG ADD %KEY%\095 /V 2 /D "psshutdown -t 40 -r -f" /f[/color] --- If You use PSSHUTDOWN tool for Restart your computer..
June 24, 200620 yr Make a "Remove.cmd" for removing folder with subfolder..RD /S /Q "Folder Path"DEL /Q /F %systemdrive%\Remove.cmdNot quite correctRD/S/Q "Folder Path"DEL/F %systemdrive%\Remove.cmdThe /Q switch is incorrectIn your case, to delete your batch file, you could use,DEL %0as the last line of your batch file.However, as most users are using a cleanup.cmd file and cmdow and trying to remove a folder named install in the root of their system drive, how about this for an idea?place your command file into the Install folder you are trying to remove and have this as the last line in your cleanup.cmdRD/S/Q "%~DP0"It will delete the batch file's containing folder, obviously also removing the batch file too!
Create an account or sign in to comment