TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: BRIAN MCLAUGHLIN
date: 1998-03-23 16:45:00
subject: Re: Code to retrieve prog

From: brianm@ims.com (Brian McLaughlin)
Subject: Re: Code to retrieve program name
 
"Wiebe Zoon"  writes:
|>
|> very nice, but what about the drive letter ???
 
DOS doesn't record it. Apparently the wizards at Microsoft never
had entries in their PATH that referenced more than one drive.
 
However, you can get all the valid drive letters, then use DIR$
to see if the returned path\programname existed on each of them.
This method wouldn't account for cases where the same directory
structure existed on more than one drive. You could also search
the PATH variable to see what copy of the program took precedence.
 
All of this is, of course, messy. But the designers of DOS left
many gaping holes in the OS. Successive versions plugged some
of these holes, but others, such as the missing drive letter in
the program path, were never fixed.
 
 
--
Brian McLaughlin, Technical Writer  |"Thanks to the Internet, misinformation
Integrated Measurement Systems, Inc.| now travels faster than ever before!"
Beaverton, OR, USA                  | ---- Standard disclaimer applies ----
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.