April 27, 200422 yr 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?
April 27, 200422 yr 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
April 27, 200422 yr Author I ended up using sysprep.inf[GuiRunOnce]"C:\Windows\SYSTEM32\CMD.EXE /c RD c:\stage /s /q"
Create an account or sign in to comment