Jump to content

Problem with cleanup.cmd


Recommended Posts

Hi

My 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 /delete

DEL "%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\

EXIT

He 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???

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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

is my code

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

DEL "%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\

EXIT

Let me know if is working for u

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