need help writing simple DOS batch file
Posted: 26 Jun 2012 17:35
Hello,
I have not messed around with DOS batch files in many years, and I need a simple program that will write the proper firmware to 1 of 3 different types of WD hard drives. The batch file only has to query the user for the hard drive type. Let's call the hard drive types A, B or C. Once the user inputs the hard drive type, an exec program will execute using the proper firmware for that particular drive type. Finally, a second exec file will execute for all 3 hard drive cases.
Here is what I need in laymens terms:
----------------------------------------------------------------------------
query user : are you updating firmware on WD hard drive type A, B or C : (HDtype)
VAR = HDtype
if VAR = A then execute (WD_download.exe 1tb.bin)
else
if VAR = B then execute (WD_download.exe 250_500.bin)
else
if VAR = C then execute (WD_download.exe velociraptor.bin)
endif
wdsspd.exe -a
----------------------------------------------------------------------------
Thanks in advance for your help !!!!
-Mike
I have not messed around with DOS batch files in many years, and I need a simple program that will write the proper firmware to 1 of 3 different types of WD hard drives. The batch file only has to query the user for the hard drive type. Let's call the hard drive types A, B or C. Once the user inputs the hard drive type, an exec program will execute using the proper firmware for that particular drive type. Finally, a second exec file will execute for all 3 hard drive cases.
Here is what I need in laymens terms:
----------------------------------------------------------------------------
query user : are you updating firmware on WD hard drive type A, B or C : (HDtype)
VAR = HDtype
if VAR = A then execute (WD_download.exe 1tb.bin)
else
if VAR = B then execute (WD_download.exe 250_500.bin)
else
if VAR = C then execute (WD_download.exe velociraptor.bin)
endif
wdsspd.exe -a
----------------------------------------------------------------------------
Thanks in advance for your help !!!!
-Mike