Page 1 of 1 1
Topic Options
#47106 - 2003-10-21 03:50 PM Drive Mapping Question From a newbie...
brothercool Offline
Fresh Scripter

Registered: 2003-10-21
Posts: 5
i'm trying to map user directories.
the path is \\server02\users\%username%
but only \\sever02\users gets mapped

i've tried using @HOMESHR and @HOMEDIR and no luck.

help please...

Top
#47107 - 2003-10-21 04:38 PM Re: Drive Mapping Question From a newbie...
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Welcome [Big Grin]

Use something like
code:
USE H: "\\SERVER2\" + @USERID + "$"

Did you searched the BB and read the manual? If you did you did find the answer...

[ 21. October 2003, 16:39: Message edited by: Co ]
_________________________
Co


Top
#47108 - 2003-10-21 04:53 PM Re: Drive Mapping Question From a newbie...
brothercool Offline
Fresh Scripter

Registered: 2003-10-21
Posts: 5
Well, i tried that. and nope.
i read the manual and everything i tried doesn't work.

trying to get

H: --> \\server02\users\(username)

USE H: "\\server02\users\" + @HOMEDIR
result is H: --> \\server02\users

USE H: "\\server02\users\" + @USERID
result is H: --> \\server02\users

$var = @HOMESHR + "\" + @HOMEDIR
USE H: $var
result is H: --> \\server02\users

Will USE just not go more than one directory in?

[ 21. October 2003, 16:54: Message edited by: brothercool ]

Top
#47109 - 2003-10-21 04:55 PM Re: Drive Mapping Question From a newbie...
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I hope you aren't trying to do this on Win9x or WinNt machines - it won't work. Read the manual - deep mappings (what you call more then 1 in) will not work with Win9x or WinNT clients.

If these are Win2000 or higher clients the this should work

code:
USE H: "\\SERVER02\users\" + @USERID 

Of course, if the clients are WinNT or higher then you should be able to automap the user directories through the user manager. Then you wouldn't need this code,

CO's solution above implies you will restructure & rename your user shares. If you do this then your your mappings will work with all flavours of Windows.

[ 21. October 2003, 16:58: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#47110 - 2003-10-21 04:58 PM Re: Drive Mapping Question From a newbie...
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Don't forget to remove any existing mapping first, or your new mapping will silently fail.
code:
USE H: /DELETE /PERSISTENT


Top
#47111 - 2003-10-21 04:59 PM Re: Drive Mapping Question From a newbie...
brothercool Offline
Fresh Scripter

Registered: 2003-10-21
Posts: 5
i'll have Win9x and XP machines. i'm just test now with a ME machine.

what can (if anything) i do to get the results i'm seeking?

Top
#47112 - 2003-10-21 05:02 PM Re: Drive Mapping Question From a newbie...
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
For Win9x machines you must share each individual home directory and map it - the Win9x redirector does not support deep mapping in any form.
Top
#47113 - 2003-10-21 05:04 PM Re: Drive Mapping Question From a newbie...
brothercool Offline
Fresh Scripter

Registered: 2003-10-21
Posts: 5
map the WIN9x machines by hand?
so a script can't? oh well.

thanks!

Top
#47114 - 2003-10-21 05:05 PM Re: Drive Mapping Question From a newbie...
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
The problem is the default user directories created by the user manager are not true shares. The only share created is for \\server\user & the sub-directory access is controlled through ownership controls. This concept has no equivalent in Win95/98/ME & thus are not directly accessible.

To get your Win9x machines to attach the shares you must create real shares for each user. (This is indirectly what CO is proposing) This has been discussed on the board quite frequently do a search & I am sure you will find a lot of info.
_________________________
Jack

Top
#47115 - 2003-10-21 05:08 PM Re: Drive Mapping Question From a newbie...
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Please note there is no way to map the default user directories with Win9x, manually or otherwise. You can automate the creation of new shares by using a batch file or utility. Once created these new shares can be attached by a script.

[ 21. October 2003, 17:10: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#47116 - 2003-10-21 05:13 PM Re: Drive Mapping Question From a newbie...
brothercool Offline
Fresh Scripter

Registered: 2003-10-21
Posts: 5
i made a share for my test account home dir (c01 in \users), but i still can't attach it with a script. that was the first fix i tried.
Top
#47117 - 2003-10-21 05:34 PM Re: Drive Mapping Question From a newbie...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Read the KiXtart Manual under 'root map'!

The create hidden shares for your users on the server such that \\server\user1$ points to the user directory for user1 on \\server.

Then map
code:
use P: '\\server\'+@USERID+'$$'

Windows 9x/NT cannotmap to shares like '\\server\share\folder'.

Get rid of unsupported operating systems like Windows 9x!

[ 21. October 2003, 18:14: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#47118 - 2003-10-21 06:13 PM Re: Drive Mapping Question From a newbie...
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
To convert the default user directory to a real share you must get on the server & then take ownership of the user directory. Then allow the user file level access privledges, then create a share for this specific directory & then give the user share level access. As mention above a good share name is "userid$". Please note that if you do this you will break the procedure that automaps user directories on logon.

[ 21. October 2003, 18:16: Message edited by: Jack Lothian ]
_________________________
Jack

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 1619 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.074 seconds in which 0.035 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