Gerry Hickman schreef:
@echo off
shrdrv86 /D:12400K,D
if errorlevel 27 goto end
if "%errorlevel%"=="0" goto end
for %%x in ( D E F G H I J K L M N O P Q R S T U V W X Y Z ) do if errorlevel H%%x set extradrv=%%x:

Hmm, this is the kind of thing I'm trying to avoid! Is it not possible for the RAMDISK program to set an environment variable instead of an ErrorLevel?

Nope, hardly any application can change the environment.
my FOR line is the same as:
if errorlevel 1 set extradrv=A:
if errorlevel 2 set extradrv=B:
if errorlevel 25 set extradrv=Y:
if errorlevel 26 set extradrv=Z:

so still pretty easy.
what are you trying to accomplish? interested in your use of DOS programs :)


SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
Freedos-user mailing list

Reply via email to