dorguy Posted August 23, 2004 Posted August 23, 2004 HiMy cleanup.cmd dont delete the install folder....Here is my code shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteDEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\EXITHe delete the drivers folder but not the install... Did i do something wrong? my cleanup.cmd are in C:\XPCD\$OEM$\$1\install and is called by RunOnceEx.cmd who is in C:\XPCD\$OEM$\. RunOnceEx.cmd are called by cmdlines.txt who is also in C:\XPCD\$OEM$\ Any suggestions???
bucketbuster Posted August 23, 2004 Posted August 23, 2004 Maybe windows doesn't have enough time to remove the install folder.Try with increasing the shutdown time to 2 minutes.P.S.Does the command: net user aspnet /delete work for you?I am having trouble with that, about were to put it.
dorguy Posted August 23, 2004 Author Posted August 23, 2004 aspnet exist only when u are installing .Net Framework. Windows XP SP2 RTM:2600.2180 do not include .Net Framework.U can install it from Windows Update.The command: net user aspnet /delete work perfectly for me. I put the command in cleanup.cmdis my codeshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteDEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\EXITLet me know if is working for u
bucketbuster Posted August 23, 2004 Posted August 23, 2004 It worked in Virtual PC, so it probably also works in a real install.But I am not planning to do a real install any time soon.Just did one a week ago.
dorguy Posted August 23, 2004 Author Posted August 23, 2004 I try it in real install and is working perfectly
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