robr Posted April 27, 2004 Share Posted April 27, 2004 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 More sharing options...
Blyster Posted April 27, 2004 Share Posted April 27, 2004 try making a batch file to do the deletions that you will call from cmdlines.txtBy 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 More sharing options...
robr Posted April 27, 2004 Author Share Posted April 27, 2004 I ended up using sysprep.inf[GuiRunOnce]"C:\Windows\SYSTEM32\CMD.EXE /c RD c:\stage /s /q" 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