Jump to content

cleanup after WinPE unattended install


Recommended Posts

I have some directories I'd like to be deleted upon enduser mini-setup. I figured I could use cmdlines.txt to do this, but if I add an entry like this:

[Commands]

"rmdir /s /q c:\stage"

or like this:

[Commands]

"%windir%\SYSTEM32\CMD.EXE /c RMDIR c:\stage /s /q"

I'm told RMDIR can't be found. I realize I could put all the files in the sysprep directory which is deleted automatically, but I'm already committed to where the current directory structures live. Any suggestions?

Link to comment
Share on other sites


try making a batch file to do the deletions that you will call from cmdlines.txt

By doing this you allow yourself to use variables (which aren't accepted in the cmdlines.txt file). I also have better luck using the rd command over the rmdir, but that shouldn't make any difference i wouldn't think. Good luck

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...