Hi Bernd,

I need a simple reliable RAMDISK that can automatically set an
Environment variable to it's drive letter.

batchcode is really easy:

@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?

--
Gerry Hickman (London UK)


-------------------------------------------------------
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 * http://www.sqe.com/bsce5sf
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to