1.

Solve : Start was unexpected at this time?

Answer»

Hey I was making a smiple script to install some stuff, but I GOT the error
"Start was unexpected at this time"
here is the full code

Code: [Select]echo off
cls

:start
echo Je moet nooit opnieuwopstarten op het einde doet dit script het voor u!
echo .......................................................................
echo Mount Batllefield 2.iso en installeer het.
echo ..........................................
echo Druk op ENTER als het geinstaleerd is.
echo ......................................
pause
goto Patch

:Patch
(%time%) Start installatie patch.
start /wait BF2_Patch_1.41.exe
(%time%) Patch geinstaleerd.
goto Choise

:Choise
Choice /m "64-bit computer"
If Errorlevel 2 Goto No
If Errorlevel 1 Goto Yes
Goto vervolg
:No
(%time%) Copieren files.
copy BF2.exe "C:\Program Files\EA GAMES\BF2.exe"
copy rzr-b241.nfo "C:\Program Files\EA GAMES\rzr-b241.nfo"
copy CoreDLL.dll "C:\Program Files\EA GAMES\CoreDLL.dll"
(%time%) Copieren files gedaan.
Goto vervolg

:Yes
copy  BF2.exe "C:\Program Files (x86)\EA GAMES\BF2.exe"
copy  rzr-b241.nfo "C:\Program Files (x86)\EA GAMES\rzr-b241.nfo"
copy CoreDLL.dll "C:\Program Files (x86)\EA GAMES\CoreDLL.dll"
goto vervolg

:vervolg
(%time%) Start installatie mappacken.
start /wait ultimate-pack3.exe
start /wait x-07 mappack.exe
(%time%) Installatie mappacken gedaan.
goto shutdown

:shutdown
echo (%time%) Shutdown
echo Je PC word heropgestart binnen 30 sec.
pause
shutdown -r -t 30
endOw, found it forogt echo 
SrryVery good that you figured out your own solution! I had an issue once where the program was not echo-ing a line to a file...I just forgot a percent sign after the variable.Yeay, it's SOMETIMES the smallest things that let your script crash I hate that



Discussion

No Comment Found