Op 25-7-2011 23:51, Rugxulo schreef: > P.S. Timo's BAT FAQ wasn't as exhaustive as I thought. The only > interesting trick was doing something like "echo. exit | command /c > prompt set blah=$t", which still would've needed some fiddling with an > external tool (esp. one not typically included in DOSes), so I didn't > bother too hard thinking about that. But even he often uses sed or awk > (or QBASIC) for some tricks. So I still don't think it's a horrible > idea to include one (or both!) of those for FD 2.0 (or whatever).
Actually it was extensive enough! It showed the use of an undocumented MS COMMAND.COM trick to switch drive: add "\" to the end of any valid filename. @echo off rem switch to root drive of wherever this file is located: %0\ It's good enough for me. After that I tried starting Setup from CDROM after booting from a Win98 bootdisk. Turns out TRUENAME used on a CD-driveletter assigned by MSCDEX (or maybe even network shares) is listed in a quite odd way. Ah well. Bernd ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel