Jump to content

Cleanup.cmd


Recommended Posts

Hey,

cmdow @ /HID

shutdown.exe -r -f -t 120 -c "Windows XP zal herstarten binnen 2 minutenn.."

net user aspnet /delete

DEL "%systemdrive%\setaid2.log"

DEL "%systemdrive%\InstallUtil.InstallLog"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Ashampoo Burning Studio 8.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\SnagIt 9.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\QuickTime Player.lnk"

DEL "%UserProfile%\Desktop\DCleaner.lnk"

DEL "%UserProfile%\Desktop\Foxit PDF Editor.lnk"

DEL "%UserProfile%\Desktop\Foxit Reader.lnk"

DEL "%UserProfile%\Desktop\SpeedFan.lnk"

DEL "%UserProfile%\Desktop\QuickPar.lnk"

DEL "%UserProfile%\Desktop\PC Wizard 2008.lnk"

DEL "%UserProfile%\Desktop\EVEREST Ultimate Edition.lnk"

DEL "%AllUsersProfile%\Desktop\Malwarebytes' Anti-Malware.lnk"

DEL "%AllUsersProfile%\Desktop\PowerISO.lnk"

DEL "%AllUsersProfile%\Desktop\SnagIt 9.lnk"

DEL "%AllUsersProfile%\Desktop\VLC media player.lnk"

DEL "%AllUsersProfile%\Desktop\QuickTime Player.lnk"

DEL "%AllUsersProfile%\Desktop\SnagIt 9 Editor.lnk"

RD /S /Q %systemdrive%\Downloads\

EXIT

Thats my cleanup.cmd, but it doesnt work good.

It deletes the Dowloads map (this is the Install map, but renamed it).

It also deletes the 2 logfiles.

But it doesnt delete the icons, and i want them to be deleted?

So what am i doing wrong?

Thanks in advance.

Link to comment
Share on other sites


Raoul90, I'm used you batch and it works. Try to place "shutdown..." (without -f key) and "net user..." in the end of batch:

cmdow @ /HID

DEL "%systemdrive%\setaid2.log"

DEL "%systemdrive%\InstallUtil.InstallLog"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Ashampoo Burning Studio 8.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\SnagIt 9.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\QuickTime Player.lnk"

DEL "%UserProfile%\Desktop\DCleaner.lnk"

DEL "%UserProfile%\Desktop\Foxit PDF Editor.lnk"

DEL "%UserProfile%\Desktop\Foxit Reader.lnk"

DEL "%UserProfile%\Desktop\SpeedFan.lnk"

DEL "%UserProfile%\Desktop\QuickPar.lnk"

DEL "%UserProfile%\Desktop\PC Wizard 2008.lnk"

DEL "%UserProfile%\Desktop\EVEREST Ultimate Edition.lnk"

DEL "%AllUsersProfile%\Desktop\Malwarebytes' Anti-Malware.lnk"

DEL "%AllUsersProfile%\Desktop\PowerISO.lnk"

DEL "%AllUsersProfile%\Desktop\SnagIt 9.lnk"

DEL "%AllUsersProfile%\Desktop\VLC media player.lnk"

DEL "%AllUsersProfile%\Desktop\QuickTime Player.lnk"

DEL "%AllUsersProfile%\Desktop\SnagIt 9 Editor.lnk"

RD /S /Q %systemdrive%\Downloads\

net user aspnet /delete

shutdown.exe -r -t 10 -c "Windows XP will restart in 10 secons, don't worry!"

EXIT

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