|
Answer» Booted to Win98 DOS Floppy
Working on creating new boot floppy (later to boot CD) for GHOST & Diagnostics. I am trying to capture & parse the OUTPUT (console) from FINDCD.COM utility. findcd.com -a finds all the CD drives and outputs a string to the console (CRT) ie A:> DEF findcd.com -a -e returns the 1st CD (# i.e. 4 = D:) to ERRORLEVEL which I can ENUMERATE, but only the 1st drive found. I could REDIRECT: findcd.com -a > cd.txt but cannot READ the file. for /f %i (cd.txt) do echo %i does not work because Win98 DOS does not have the /f flag. I would really like to read and parse the output string to 3 variables so that I can display (format) a user message. i.e. %CDROM0%=D %CDROM1%=E %CDROM2%=F
I could also pipe the output, but to what command?
Any help would be greatly appreciated from the experts !
|