Jump to content

Recommended Posts

Posted

Hi my cleanup.cmd file does all it is supposed to do, except that it doesn't execute the registry file to delete the runoncex reg files. Can someone take a look at my cleanup.cmd file and tell me what is wrong with it. I want it to run the deleteregistryfiles.reg file from the cd so i included if statements, so i could use the %CDROM% variable as a path. When looking at my cleanup.cmd file please tell me if i did the if statements right as well. Thank you now here is my cleanup.cmd file.

cmdow @ /HID

@echo off

IF EXIST D:\CD.txt set CDROM=D:

IF EXIST E:\CD.txt set CDROM=E:

IF EXIST F:\CD.txt set CDROM=F:

IF EXIST G:\CD.txt set CDROM=G:

IF EXIST H:\CD.txt set CDROM=H:

IF EXIST I:\CD.txt set CDROM=I:

IF EXIST J:\CD.txt set CDROM=J:

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

net user aspnet /delete

DEL "%systemdrive%\Install\PowerToys\CmdHerePowertoySetup.exe"

DEL "%systemdrive%\Install\PowerToys\DeskmanPowertoySetup.exe"

DEL "%systemdrive%\Install\PowerToys\TweakUI.msi"

DEL "%systemdrive%\Install\RegistryTweaks.reg"

DEL "%systemdrive%\Install\MSN\bootstrap.exe"

DEL "%systemdrive%\Install\MSN\MsnMsgs.msi"

DEL "%systemdrive%\Install\WMP10\mp10setup.exe"

RD "%systemdrive%\Install\WMP10"

RD "%systemdrive%\Install\MSN"

RD "%systemdrive%\Install\PowerToys"

RD "%systemdrive%\Install"

Start %CDROM%\$OEM$\DeleteRegistryFiles.reg


Posted
Hi my cleanup.cmd file does all it is supposed to do, except that it doesn't execute the registry file to delete the runoncex reg files.  Can someone take a look at my cleanup.cmd file and tell me what is wrong with it.  I want it to run the deleteregistryfiles.reg file from the cd so i included if statements, so i could use the %CDROM% variable as a path.

I explained how to fix it in this post: http://www.msfn.org/board/index.php?showtopic=27037

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