Subj : Re: How to detect RAM disks (Was: how to detect cdrom?) To : Steve From : Jasen Betts Date : Sun Feb 17 2002 07:15 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: Re: How to detect RAM disks (Was: how to detect cdrom?) Hi Steve. 14-Feb-02 14:16:24, Steve wrote to Outsider S> Suppose my virtual disk is Z: and is has a directory "Z:\TEMP.DIR". S> It seems your program would have a syntax error if run after S> executin S> set TEMP=Z:\TEMP.DIR I noticed his habit of using a dot after %temp% too... I think it's to catch instance when the user puts a trailing slash in %temp%, like Z:\temp.dir\ the trailing . has no effect in most instance, but it "eats" the extra backslash if there is one. in any case havong a trailing backslash in %temp% is an error as command.com can't use it like that and drops its temp files in the current directory... so it's probaby pointless checking for it... 4dos isn't bothered by a trailing \ in %temp% -=> Bye <=- -- |Fidonet: Jasen Betts 3:640/531.42 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .