Question : Map \\Server\Users\User1 with %Username%

The senario looks as follow:
\\Server\Users\User1 has a file File.exe and a dir. Documents.
I want to Map \\Server\Users\User1 by writing Net Use H: \\Server\Users\%Username%
then h: looks:
H:\
-\Documents
-File.exe
and NOT
H:\User1\
-\Documents
-File.exe
How do I do??
Rickard

Answer : Map \\Server\Users\User1 with %Username%

Here is another option for you:

Share each users directory as a "hidden" share. To make it hidden, just add a $ sign at the end of the share name. For instance, to share \\\users\bob, you would name the share BOB$. Then you can type map H: \\\BOB$.

Of course this is a lot of administrative overhead if you need to do this for more than a handful of users. The "Microsoft solution" is to use the SUBST command, which only produces the desired result if the user is running NT workstation.

Sorry, the "net use " command is not as robust as Novell's "map" command. Maybe this will change soon. There are third party administrative tools that may allow you to do this. You are certainly not the first person to ask this question and it is actually a fairly common request on this thread.

Random Solutions  
 
programming4us programming4us