Article View: borland.public.cppbuilder.nativeapi
Article #4468How to find out if a drive-letter is 'subst' drive and if yes, what is the connected dir?
From: MR
Date: Sat, 28 Jan 2006 07:04
Date: Sat, 28 Jan 2006 07:04
18 lines
1337 bytes
1337 bytes
How to find out if a drive-letter is 'subst' drive and if yes, what is the connected dir? When using the DOS-command subst, I can assign a drive-letter to any directory, e.g. subst z: c:\windows subst y: z:\system32 How can I find out, if z: is a real drive-name and how to get the connected dir "c:\windows" from the drive-name "Z". I would prefer a function, which can be used in a real DOS-application, if there is any... Thanks a lot, Michael
Technical Details
Message-ID:
<7e5mt1tgs8g8aiccinc8otj9e30htumds7@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1f1d5f65bf11a172,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: MR <> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to find out if a drive-letter is 'subst' drive and if yes, what is the connected dir? Date: Sat, 28 Jan 2006 08:04:23 +0100 Message-ID: <7e5mt1tgs8g8aiccinc8otj9e30htumds7@4ax.com> X-Newsreader: Forte Free Agent 3.1/32.783 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.57.27.36 X-Trace: newsgroups.borland.com 1138431826 84.57.27.36 (27 Jan 2006 23:03:46 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail