Forumi
Home Pravila i pomoć Članovi Kalendar Današnji postovi


Povratak   PC Ekspert Forum > Računala > Software > Web dizajn, programiranje i ostalo
Ime
Lozinka

Odgovori
 
Uređivanje
Staro 25.03.2004., 21:56   #1
Bipe
What's inside???
Moj komp
 
Bipe's Avatar
 
Datum registracije: Sep 2003
Lokacija: Zagreb
Postovi: 370
batch

ocu si napravit batch za flashanje grafe s izbornikom yes/no
ja sam napravil to na sljedeci nacin:

@echo off

echo Do you wish to flash your graphic card?
echo =======================================
echo.
echo 1 - stop buging me and flash the damn card
echo 2 - I've changed my mind, don't flash it
if errorlevel 2 goto no
if errorlevel 1 goto yes
goto done

:yes
cls
atiflash -p 0 r9kpro.f2
echo.
echo flashing completed
goto no

:no
cd..
echo.
echo.
echo Press CTRL+ALT+DELETE to restart your computer.

sad bi to sve bilo ok da to radi i kad ja zbutam komp sa win 98/me boot disketom! onda mi pocne govorit nes ala unknown command i tome slicno, dok mi u ms-dos prompt-u sve radi (osim kaj ne flasha posto se treba biti u dos-u). posto nemam pojma kaj se programiranja tice, molim pomoc
__________________
Bipe je offline   Reply With Quote
Staro 26.03.2004., 09:30   #2
Costa
Moderator
 
Costa's Avatar
 
Datum registracije: Aug 2003
Lokacija: Zagreb
Postovi: 3,193
@echo off
echo Do you wish to flash your graphic card?
echo =======================================
echo.
echo 1 - stop buging me and flash the damn card
echo 2 - I've changed my mind, don't flash it
CHOICE /C:12 /N
if errorlevel 2 goto no
if errorlevel 1 goto yes
goto no

:yes
cls
atiflash -p 0 r9kpro.f2
echo.
echo flashing completed
goto no

:no
cd..
echo.
echo.
echo Press CTRL+ALT+DELETE to restart your computer.
Costa je offline   Reply With Quote
Oglasni prostor
Oglas
 
Oglas
Staro 26.03.2004., 16:57   #3
Bipe
What's inside???
Moj komp
 
Bipe's Avatar
 
Datum registracije: Sep 2003
Lokacija: Zagreb
Postovi: 370
fala, probat cu pa javim
__________________
Bipe je offline   Reply With Quote
Staro 26.03.2004., 17:35   #4
Bipe
What's inside???
Moj komp
 
Bipe's Avatar
 
Datum registracije: Sep 2003
Lokacija: Zagreb
Postovi: 370
nope! ne radi!
....
I've changed my mind, don't flash it
Bad command or file name
Invalid directory

i nakon toga ode na "no"... inace kad sam imao obican batch bez izbornika je sve radilo ok, napisao sam samo ati i on mi je automatski preflasho (tada sam imao samo atiflash -p 0 r9kpro.f2) i onda sam isao dodat taj izbornik i sve je otislo u qrac
btw. bez izbornika sve normalno radi
__________________
Bipe je offline   Reply With Quote
Staro 26.03.2004., 17:45   #5
Costa
Moderator
 
Costa's Avatar
 
Datum registracije: Aug 2003
Lokacija: Zagreb
Postovi: 3,193
Treba ti choice.com program. On standardno dolazi s MSDOS-om.

Postoji rjesenje za XP ali onda ti nece raditi u DOS-u
Costa je offline   Reply With Quote
Oglasni prostor
Oglas
 
Oglas
Odgovori



Pravila postanja
Vi ne možete otvarati nove teme
Vi ne možete pisati odgovore
Vi ne možete uploadati priloge
Vi ne možete uređivati svoje poruke

BB code je Uključeno
Smajlići su Uključeno
[IMG] kod je Uključeno
HTML je Isključeno

Idi na