Jump to content

Install directory is not deleted by cleanup.cmd


Recommended Posts

Aaron,

First of all thanks for the reply.

I'm sure I didn't make this clear. Sometimes I can't see the forrest for the trees.

Any how this is where I'm at the moment:

cmdow @ /HID

net user aspnet /delete

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1minute..."

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"

DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"

DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"

DEL "%AllUsersProfile%\Start Menu\Programs\LaunchRA.lnk"

RD /S /Q %systemdrive%\Drivers\

RD /S /Q %systemdrive%\Install\

EXIT

I also tried
RMDIR /S /Q %systemdrive%\Drivers\

RMDIR /S /Q %systemdrive%\Install\

with the same results

At this point everything in "C:\Install" is deleted, but not the directory. I probably should leave well enough alone, but haven't the sense to.

Can't remember if I tried this yet. Duh :) I have an advancing case of CRS.

RD %systemdrive%\drivers\ /S /Q

RD %systemdrive%\install\ /S /Q

Basically the same thing as above???

Thanks again maxXPsoft. You know, if I'm not careful, I might actually learn something. :rolleyes:

Link to comment
Share on other sites


I've already suggested this so, have you tried it yet? With the quotes?

RD /S /Q "%systemdrive%\Drivers"
RD /S /Q "%systemdrive%\Install"
RMDIR /S /Q %systemdrive%\Drivers\
RMDIR /S /Q %systemdrive%\Install\

I have all four lines in my .cmd file so I don't know which ones worked. That's why I said earlier that one of them ought to work.

And may I also suggest that you use cmdow @ /MIN instead of cmdow @ /HID? And also a "pause" at the very end of the batch file so at least, if the folder doesn't get deleted, you will see any error messages.

Link to comment
Share on other sites

Duh  I have an advancing case of CRS.
lol that only kicks in on me at work for some reason.

DarkBringer

has a good idea but i completely removed the cmdow line and put at end

pause

EXIT

and thats where I figured out what was going on with mine.

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