Re: How to list all drive maps? ('net use' only shows *current user's* maps)
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 09:12:50 +0200
Hi!
In advance...
"Greg Ercolano" <erco@xxxxxxxxxx> wrote in message
news:46xIf.120$gf7.66@xxxxxxxxxxx
Arkady Frenkel wrote:Being service telnet can receive that data from user part of it, where no
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)
problems with mentioned function
Arkady
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().
.
- References:
- How to list all drive maps? ('net use' only shows *current user's* maps)
- From: Greg Ercolano
- Re: How to list all drive maps? ('net use' only shows *current user's* maps)
- From: Arkady Frenkel
- Re: How to list all drive maps? ('net use' only shows *current user's* maps)
- From: Greg Ercolano
- How to list all drive maps? ('net use' only shows *current user's* maps)
- Prev by Date: Re: Raw Sockets
- Next by Date: Re: INADDR_ANY
- Previous by thread: Re: How to list all drive maps? ('net use' only shows *current user's* maps)
- Next by thread: Re: Socket Connection Times out
- Index(es):
Relevant Pages
|