What does this command do?

May 19, 2009 at 01:10:45
Specs: Windows XP SP3
Can someone please explain what this batch command does.

ren zipp.dll zipp.exe >nul
IF ERRORLEVEL 3 GOTO THREE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 1 GOTO ONE
zipp.exe x -bd -y Data1.7z >nul
IF ERRORLEVEL 3 GOTO THREE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 1 GOTO ONE
del /F /Q Data1.7z >nul
cls

ren dec.dll dec.exe >nul
IF ERRORLEVEL 3 GOTO THREE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 1 GOTO ONE
for /R %%i in (*.ogg) do dec.exe -Q "%%i" >nul
del /f /q /s *.ogg >nul
del /f /q dec.exe >nul
cls

I think it is like moving/installing something but i'm not sure how or what.

Especially this bit
IF ERRORLEVEL 3 GOTO THREE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 1 GOTO ONE

What are the 3 error levels??


See More: What does this command do?

Report •


#1
May 19, 2009 at 01:58:35
For starters, it's incomplete. The labels for the GOTOs are missing.

The errorlevel set by any program is based on execution result. There's not much consistency, with the possible exception that usually code 0 indicates success and anything else indicates a less than happy result.


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
May 19, 2009 at 04:19:13
Mechanix same question as before.

Can you help me fix these lines of code?


Report •

#3
May 19, 2009 at 04:30:49
I have no idea what it's meant to do.

But it's usually a bad idea to run code of unknown pedigree. Especially one which changes a DLL to EXE.

Is there something you are trying to get done?


=====================================
If at first you don't succeed, you're about average.

M2


Report •

Related Solutions

#4
May 19, 2009 at 04:49:39
Oh yeh i am trying to make a command to install some files. My friend gave me these lines of code but i dont see how they work. what i need it to do is to move .dll files into the registry, make a new file and put all of the program files into a file called winrar5.1 into the folder \program files. If you want i can upload what i have so far for you to have a look at.

Report •


Ask Question