Re: How to list all drive maps? ('net use' only shows *current user's* maps)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Arkady Frenkel wrote:
Look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q180362
for details ( each user has it's own set )

Thanks, good info.

The relevant text regarding 'net use' not showing all the info
is probably this bit:

--- snip
If a user tries to enumerate the list of redirected drives through WNetOpenEnum()
and WNetEnumResource(), the functions only list redirected drives that were established
by that user. Drives that were redirected by other users will not be visible.
--- snip

What scares me is Microsoft saying this:
--- snip
A service should not directly access local or network resources through mapped drive letters.
--- snip

Taken at face value, that means folks who telnet in to a DOS prompt
can't use drive letters. (telnet is a service)

But sometimes you are forced to use drive letters, because some DOS
commands don't support UNC paths, such as 'cd' and 'chdir':

C:\>cd \\meade\net\tmp
'\\meade\net\tmp' is an invalid current directory path. UNC paths are not supported.

..which means you're SOL if you want to run 'nmake' or 'cl'
in a network directory.

Fortunately drive maps /do/ seem to work from telnet.

Good thing too, because AFAIK, there's no way around the DOS
CHDIR problem with UNC paths, which is I think is more of a legacy issue
with DOS than it is a technical issue with WIN32, which I think fully
supports UNCs, even for chdir().
.



Relevant Pages