Another issue
Posted: 11 Sep 2009 09:50
I have another batch file I am trying to get working. All I am really trying to do is check a version on a flash drive then update it to the latest version. For some reason it closes before hitting the pause. I have the pause in there to help trouble shoot. Any suggestions?
cls
@echo off
cd sbusb
@echo ----- This is not ready to be used Please close by using RED X ------
@echo.
@echo What drive letter is your flash drive?
set /p dr=
copy %dr%:\version.txt H:\ITM03\Programs\BootDisk\
type version.txt> %ver%
pause
if '%ver%'=='378' goto 379
if '%ver%'=='379' goto 380
if '%ver%'=='380' goto 381
if '%ver%'=='381' goto 382
if '%ver%'=='382' goto 383
if '%ver%'=='383' goto 384
if '%ver%'=='384' goto 385
if '%ver%'=='385' goto 386
if '%ver%'=='386' goto 387
if '%ver%'=='387' goto 388
if '%ver%'=='388' goto 389
if '%ver%'=='389' goto end
:378
:379
and so on
cls
@echo off
cd sbusb
@echo ----- This is not ready to be used Please close by using RED X ------
@echo.
@echo What drive letter is your flash drive?
set /p dr=
copy %dr%:\version.txt H:\ITM03\Programs\BootDisk\
type version.txt> %ver%
pause
if '%ver%'=='378' goto 379
if '%ver%'=='379' goto 380
if '%ver%'=='380' goto 381
if '%ver%'=='381' goto 382
if '%ver%'=='382' goto 383
if '%ver%'=='383' goto 384
if '%ver%'=='384' goto 385
if '%ver%'=='385' goto 386
if '%ver%'=='386' goto 387
if '%ver%'=='387' goto 388
if '%ver%'=='388' goto 389
if '%ver%'=='389' goto end
:378
:379
and so on