In context, this is the final error I am receiving:
257 File(s) copied The operation completed successfully. "In reset" A subdirectory or file C:\Program Files (x86)\DreamWorks Interactive already exi sts. A subdirectory or file C:\Program Files (x86)\DreamWorks Interactive\Neverhood a lready exists. 0 File(s) copied "In infinitum" The syntax of the command is incorrect.
And that is it. This is the end of the output respectively to the code.
Here is the context of the code:
:opening echo "In opening" echo d | xcopy __neverhood C:\__neverhood /S reg import neverhood.reg if not exist "C:\Program Files (x86)" goto thirtytwo if exist "C:\Program Files (x86)" goto reset :thirtytwo echo "In thirtytwo" mkdir "C:\Program Files\DreamWorks Interactive" mkdir "C:\Program Files\DreamWorks Interactive\Neverhood" set passagery="C:\Program Files\DreamWorks Interactive\Neverhood" copy /Y WAVistaWin7.exe %passagery% goto infinitum :reset echo "In reset" mkdir "C:\Program Files (x86)\DreamWorks Interactive" mkdir "C:\Program Files (x86)\DreamWorks Interactive\Neverhood" set passagery="C:\Program Files (x86)\DreamWorks Interactive\Neverhood" xcopy /Y /U WAVistaWin7.exe %passagery% goto infinitum :infinitum echo "In infinitum" C:\__neverhood\setup95.exe rename "%passagery%\nhc.exe" "wa.exe"
I don't quite understand. Yes, the executable WAVistaWin7.exe is in the same folder. I typed it correctly.
Here is the full code:
@ECHO OFF if exist "C:\Program Files (x86)\DreamWorks Interactive\Neverhood" goto delnevii :delnevii echo "In delnevii" "C:\Program Files (x86)\DreamWorks Interactive\Neverhood\setup95.exe" goto begin if exist "C:\Program Files\DreamWorks Interactive\Neverhood" goto delneviii echo "In delneviii" "C:\Program Files\DreamWorks Interactive\Neverhood\setup95.exe" goto begin :begin echo "In begin" if not exist "C:\__neverhood" goto delnev :delnev echo "In delnev" echo y | del /S /Q C:\__neverhood goto opening :opening echo "In opening" echo d | xcopy __neverhood C:\__neverhood /S reg import neverhood.reg if not exist "C:\Program Files (x86)" goto thirtytwo if exist "C:\Program Files (x86)" goto reset :thirtytwo echo "In thirtytwo" mkdir "C:\Program Files\DreamWorks Interactive" mkdir "C:\Program Files\DreamWorks Interactive\Neverhood" set passagery="C:\Program Files\DreamWorks Interactive\Neverhood" copy /Y WAVistaWin7.exe %passagery% goto infinitum :reset echo "In reset" mkdir "C:\Program Files (x86)\DreamWorks Interactive" mkdir "C:\Program Files (x86)\DreamWorks Interactive\Neverhood" set passagery="C:\Program Files (x86)\DreamWorks Interactive\Neverhood" xcopy /Y /U WAVistaWin7.exe %passagery% goto infinitum :infinitum echo "In infinitum" C:\__neverhood\setup95.exe rename "%passagery%\nhc.exe" "wa.exe" pause>output
All help is appreciated. Thanks.
EDIT: Upon the OP, I said Bash. Sorry. I'm a tuxphile, I'm so used to saying BASH. It's actually Batch.

New Topic/Question
Reply



MultiQuote






|