Hi All
ME Add Folder For Install Copy To Drive C: .
ME Need Command For End INstall Delete Folder.
Thank You
Sorry BAd LAng
Page 1 of 1
Delete Folder End Install ( Help )
#2
Posted 24 June 2006 - 09:28 AM
Batch file:
Use Google.
RD /S /Q "<path_to_folder>"Put it in [GuiRunOnce] or RunOnceEx or a cleanup.cmd or something.
Use Google.
#3
Posted 24 June 2006 - 01:29 PM
Make a "Remove.cmd" for removing folder with subfolder..
Example Of RunOnceEX.CMD
RD /S /Q "Folder Path" DEL /Q /F %systemdrive%\Remove.cmd
Example Of RunOnceEX.CMD
REG ADD %KEY%\095 /VE /D "Removing Temporary Files and Restarting Computer" /f REG 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..
#4
Posted 24 June 2006 - 02:20 PM
justhink, on Jun 24 2006, 08:29 PM, said:
Make a "Remove.cmd" for removing folder with subfolder..
RD /S /Q "Folder Path" DEL /Q /F %systemdrive%\Remove.cmd
RD/S/Q "Folder Path" DEL/F %systemdrive%\Remove.cmdThe /Q switch is incorrect
In 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.cmd
RD/S/Q "%~DP0"
- It will delete the batch file's containing folder, obviously also removing the batch file too!
- ← asked pnp monitor on first boot ?
- Unattended Windows 2000/XP/2003
- Removing "Manage Your Server" shortcut in the Start Menu →
Share this topic:
Page 1 of 1



Help
Back to top








