MSFN Forum: delling files - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

delling files Rate Topic: -----

#1 User is offline   dupondje 

  • Group: Members
  • Posts: 7
  • Joined: 05-July 04

Posted 07 July 2004 - 11:00 AM

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


#2 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 07 July 2004 - 11:07 AM

from a command line do this

RD /S /Q "%systemdrive%\Install"

regards

#3 User is offline   dupondje 

  • Group: Members
  • Posts: 7
  • Joined: 05-July 04

Posted 07 July 2004 - 11:11 AM

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 :s


greets

#4 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 07 July 2004 - 11:15 AM

oh. i see what u mean, sorry ..

maybe put an entry in runonce or something so upon first boot it will delete it

cmd.exe /c RD /S /Q "%systemdrive%\Install"

regards

#5 User is offline   dupondje 

  • Group: Members
  • Posts: 7
  • Joined: 05-July 04

Posted 07 July 2004 - 11:17 AM

well XPLode runs @ first boot, so files still need to be there then :)

#6 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 July 2004 - 11:27 AM

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 off
cmdow @ /hid
TITLE clean temporary folder
COLOR fc

sleep 15
RD /S /Q %systemdrive%\install
sleep 4
RD /S /Q %systemroot%\temp\eXPlode
EXIT


I 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.

#7 User is offline   dupondje 

  • Group: Members
  • Posts: 7
  • Joined: 05-July 04

Posted 07 July 2004 - 11:39 AM

that "nowait='true'" will do the trick i bet :) testing it now :rolleyes:

thx for help

#8 User is offline   dupondje 

  • Group: Members
  • Posts: 7
  • Joined: 05-July 04

Posted 07 July 2004 - 12:50 PM

it delled all files in the dir, but it didn't del the dir itself :rolleyes:
weird thing :)

#9 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 July 2004 - 01:34 PM

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.

#10 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 July 2004 - 08:39 AM

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' />


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy