AHRIMANSEFID Posted June 23, 2006 Share Posted June 23, 2006 Hi AllME Add Folder For Install Copy To Drive C: .ME Need Command For End INstall Delete Folder.Thank YouSorry BAd LAng Link to comment Share on other sites More sharing options...
T D Posted June 24, 2006 Share Posted June 24, 2006 Batch file:RD /S /Q "<path_to_folder>" Put it in [GuiRunOnce] or RunOnceEx or a cleanup.cmd or something.Use Google. Link to comment Share on other sites More sharing options...
justhink Posted June 24, 2006 Share Posted June 24, 2006 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.. Link to comment Share on other sites More sharing options...
Yzöwl Posted June 24, 2006 Share Posted June 24, 2006 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! Link to comment Share on other sites More sharing options...
AHRIMANSEFID Posted June 25, 2006 Author Share Posted June 25, 2006 Thank You All Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now