Kind critiques are welcome..
DuperdogMe
PS Wasn't sure where to post this on the forum. Hope this was acceptable.
hijackthis.cmd
QUOTE
@echo off
echo hijackScan.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%systemdrive%\Programs\RunScanner\RunScanner.exe" goto _run2
if exist "%temp%\HijackThis\" goto _run1
mkdir "%temp\HijackThis\"
echo Hijackscan.CMD: Copying "%~dp0*.*" to "%temp%\HijackThis
xcopy /s "%~dp0*.*" "%temp%\HijackThis\"
:_run1
start %temp%\HijackThis\HijackThis.exe
goto _end
:_run2
if exist "%temp%\HijackThis\" goto _run1
mkdir "%temp\HijackThis\"
echo Hijackscan.CMD: Copying "%~dp0*.*" to "%temp%\HijackThis
xcopy /s "%~dp0*.*" "%temp%\HijackThis\"
start /wait regsvr32 /s /i shell32.dll
start /wait regsvr32 /s mlang.dll
start /wait regsvr32 /s /i browseui.dll
start /wait regsvr32 /s msxml.dll
start /wait regsvr32 /s /i mshtml.dll
start /wait regsvr32 /s /i shdocvw.dll
:_run
start %SystemDrive%\Programs\Runscanner\RunScanner.exe /t 0 %temp%\HijackThis\HijackThis.exe
goto _end
:_err
echo.
echo HijackSCAN.CMD: No temp variable set...
echo hijackSCAN.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal
echo hijackScan.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%systemdrive%\Programs\RunScanner\RunScanner.exe" goto _run2
if exist "%temp%\HijackThis\" goto _run1
mkdir "%temp\HijackThis\"
echo Hijackscan.CMD: Copying "%~dp0*.*" to "%temp%\HijackThis
xcopy /s "%~dp0*.*" "%temp%\HijackThis\"
:_run1
start %temp%\HijackThis\HijackThis.exe
goto _end
:_run2
if exist "%temp%\HijackThis\" goto _run1
mkdir "%temp\HijackThis\"
echo Hijackscan.CMD: Copying "%~dp0*.*" to "%temp%\HijackThis
xcopy /s "%~dp0*.*" "%temp%\HijackThis\"
start /wait regsvr32 /s /i shell32.dll
start /wait regsvr32 /s mlang.dll
start /wait regsvr32 /s /i browseui.dll
start /wait regsvr32 /s msxml.dll
start /wait regsvr32 /s /i mshtml.dll
start /wait regsvr32 /s /i shdocvw.dll
:_run
start %SystemDrive%\Programs\Runscanner\RunScanner.exe /t 0 %temp%\HijackThis\HijackThis.exe
goto _end
:_err
echo.
echo HijackSCAN.CMD: No temp variable set...
echo hijackSCAN.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal
adaware.cmd
QUOTE
@echo off
rem -------------------------------------------------------------------------
rem revised by duperdogme
rem -------------------------------------------------------------------------
echo ADAWARE.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%systemdrive%\Programs\RunScanner\RunScanner.exe" goto _run2
if exist "%temp%\adaware\ad-aware.exe" goto _run1
mkdir "%temp%\adaware"
echo ADAWARE.CMD: Copying "%~dp0ad-aware.exe" to "%temp%\adaware\"
copy "%~dp0ad-aware.exe" "%temp%\adaware\ad-aware.exe"
echo ADAWARE.CMD: Copying "%~dp0defs.ref" to "%temp%\adaware\"
copy "%~dp0defs.ref" "%temp%\adaware\defs.ref"
:_run1
start %temp%\adawarese\ad-aware.exe
goto _end
:_run2
if exist "%temp%\adaware\ad-aware.exe" goto _run
mkdir "%temp%\adaware"
xcopy /s "%~dp0*.chm" "%temp%\adaware\"
xcopy /s "%~dp0*.wav" "%temp%\adaware\"
xcopy /s "%~dp0*.exe" "%temp%\adaware\"
xcopy /s "%~dp0*.cmd" "%temp%\adaware\"
xcopy /s "%~dp0*.ref" "%temp%\adaware\"
rem The following regsvr32 lines can be removed if you are using an explorer plugin
start /wait regsvr32 /s /i shell32.dll
start /wait regsvr32 /s mlang.dll
start /wait regsvr32 /s /i browseui.dll
start /wait regsvr32 /s msxml.dll
start /wait regsvr32 /s /i mshtml.dll
start /wait regsvr32 /s /i shdocvw.dll
:_run
start %SystemDrive%\Programs\RunScanner\RunScanner.exe %temp%\adaware\ad-aware.exe
goto _end
:_err
echo.
echo ADAWARE.CMD: No temp variable set...
echo ADAWARE.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal
rem -------------------------------------------------------------------------
rem revised by duperdogme
rem -------------------------------------------------------------------------
echo ADAWARE.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%systemdrive%\Programs\RunScanner\RunScanner.exe" goto _run2
if exist "%temp%\adaware\ad-aware.exe" goto _run1
mkdir "%temp%\adaware"
echo ADAWARE.CMD: Copying "%~dp0ad-aware.exe" to "%temp%\adaware\"
copy "%~dp0ad-aware.exe" "%temp%\adaware\ad-aware.exe"
echo ADAWARE.CMD: Copying "%~dp0defs.ref" to "%temp%\adaware\"
copy "%~dp0defs.ref" "%temp%\adaware\defs.ref"
:_run1
start %temp%\adawarese\ad-aware.exe
goto _end
:_run2
if exist "%temp%\adaware\ad-aware.exe" goto _run
mkdir "%temp%\adaware"
xcopy /s "%~dp0*.chm" "%temp%\adaware\"
xcopy /s "%~dp0*.wav" "%temp%\adaware\"
xcopy /s "%~dp0*.exe" "%temp%\adaware\"
xcopy /s "%~dp0*.cmd" "%temp%\adaware\"
xcopy /s "%~dp0*.ref" "%temp%\adaware\"
rem The following regsvr32 lines can be removed if you are using an explorer plugin
start /wait regsvr32 /s /i shell32.dll
start /wait regsvr32 /s mlang.dll
start /wait regsvr32 /s /i browseui.dll
start /wait regsvr32 /s msxml.dll
start /wait regsvr32 /s /i mshtml.dll
start /wait regsvr32 /s /i shdocvw.dll
:_run
start %SystemDrive%\Programs\RunScanner\RunScanner.exe %temp%\adaware\ad-aware.exe
goto _end
:_err
echo.
echo ADAWARE.CMD: No temp variable set...
echo ADAWARE.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal