Page 1 of 1 1
Topic Options
#46309 - 2003-10-03 10:32 PM Map to User Home Directory
Matt Mensching Offline
Fresh Scripter

Registered: 2003-10-03
Posts: 10
Can someone help me map a drive to a user's home directory (not home share)? The shared directory is:
\\server\users

The user folders are one step below this and are the user's login name. I can get my script to map to the user share, but not the user directory. The server running the script is Windows NT4 and the workstation running the script is Windows 98.
Here is my simple script:

IF INGROUP("Domain Users") = 1
? "this person is in the Domain Users group"
USE K: @HOMESHR + '\' + @HOMEDIR
USE S: "\\maprofile\users"
Sleep 5
ELSE
? "You are not in this group...exiting"
sleep 5
ENDIF

Thanks,

Matt Mensching

Top
#46310 - 2003-10-03 10:35 PM Re: Map to User Home Directory
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See the KiXtart Manual under 'Map root issue' why this won't work for you.

For Windows 9x support, you will have to create hidden shares for each of the users and then map to the specific user directory via
code:
use S: ''\\server\'+@USERID+'$$'

Please search the BBS for more info as this is being asked for on a regular basis. See also the FAQ forum.

[ 03. October 2003, 23:22: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#46311 - 2003-10-03 11:20 PM Re: Map to User Home Directory
Matt Mensching Offline
Fresh Scripter

Registered: 2003-10-03
Posts: 10
Ok, thanks for the fast reply!

I won't waste any more time on doing my way.

Matt Mensching

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.053 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org