dupondje Posted July 7, 2004 Share Posted July 7, 2004 Hi,i made a unattended cd, almost ready, but have a problem !i use XPLode to install all patches progs etc but now, how can i delete the installation dir (so the $1\Install) dir on my hdd,cause when i try to del it from XPLode, i can't del it cause XPLode is still running !so how would it be possible to del ALL files in Install dir ?greets Link to comment Share on other sites More sharing options...
MCT Posted July 7, 2004 Share Posted July 7, 2004 from a command line do thisRD /S /Q "%systemdrive%\Install"regards Link to comment Share on other sites More sharing options...
dupondje Posted July 7, 2004 Author Share Posted July 7, 2004 I Know,but the problem is, how do i run the script, and from where, cause i can't run it from XPLode cause XPLode is still running then so i can't del that file :sgreets Link to comment Share on other sites More sharing options...
MCT Posted July 7, 2004 Share Posted July 7, 2004 oh. i see what u mean, sorry ..maybe put an entry in runonce or something so upon first boot it will delete itcmd.exe /c RD /S /Q "%systemdrive%\Install"regards Link to comment Share on other sites More sharing options...
dupondje Posted July 7, 2004 Author Share Posted July 7, 2004 well XPLode runs @ first boot, so files still need to be there then Link to comment Share on other sites More sharing options...
prathapml Posted July 7, 2004 Share Posted July 7, 2004 Here's what I do:1. The last task executed by XPlode's xml is to run <execute display='clean home' program='%systemroot%\temp\eXPlode\clean.cmd' nowait='true' />2. Here's the contents of my clean.cmd:CLS@echo offcmdow @ /hidTITLE clean temporary folderCOLOR fcsleep 15RD /S /Q %systemdrive%\installsleep 4RD /S /Q %systemroot%\temp\eXPlodeEXITI hope you understood what is happening in the above processes. If any part seems not-understandable to you, post a question in this thread (after making efforts to make the above work) and I {or another MSFN'er} will be happy to answer it. Link to comment Share on other sites More sharing options...
dupondje Posted July 7, 2004 Author Share Posted July 7, 2004 that "nowait='true'" will do the trick i bet testing it now thx for help Link to comment Share on other sites More sharing options...
dupondje Posted July 7, 2004 Author Share Posted July 7, 2004 it delled all files in the dir, but it didn't del the dir itself weird thing Link to comment Share on other sites More sharing options...
prathapml Posted July 7, 2004 Share Posted July 7, 2004 That would be because that directory is "up in use" somewhere.Are you sure you gave enough sleep time for xplode to exit ? (15 seconds ought to be more that enough, but do you have the sleep.exe tool in the first place ?)Or, where are you running the clean.cmd from?Running it from somewhere within "%systemroot%\temp\eXPlode\" is recommended because that folder is sufficiently out of the way that no one will accidentally run that cmd again. Also, running it from that temp folder facilitates the .cmd to self-delete (otherwise not easily possible).Try setting up your cleaning processes in exactly the way I did - and please post back about the results. Link to comment Share on other sites More sharing options...
prathapml Posted July 9, 2004 Share Posted July 9, 2004 Just came back here to say:nowait is cool in more ways too. The below is the last process to be executed by XPlode (when it runs on first-boot from GUIrunonce) :<execute display='Rebooting...' program='shutdown.exe' arguments='-r -f -t 60 -c "Windows XP will now restart in a minute... This will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"' nowait='true' /> 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