The following line will work for NT/2000/XP to map a user's S: to a directory bearing the same name as their logon ID.
@net use S: \\servername\sharename\data\users\%username%
I run into two problems when I attempt to accomplish the same thing with a win98 computer (we still have 40 or so). I can branch the script based on operating system but I can't find the right syntax to get the same mapping for a user logging on to win98.
First, I cannot map beyond the share name. The example above lets non-win98 users map a few levels down the tree from the actual share.
Secondly, I am unable to use a variable to specify the user ID as the directory name or share that I want to map to. I am unable to find a list of variables that win98 will recognize. These are not home directories.
Does anyone have any ideas?
@net use S: \\servername\sharename\data\users\%username%
I run into two problems when I attempt to accomplish the same thing with a win98 computer (we still have 40 or so). I can branch the script based on operating system but I can't find the right syntax to get the same mapping for a user logging on to win98.
First, I cannot map beyond the share name. The example above lets non-win98 users map a few levels down the tree from the actual share.
Secondly, I am unable to use a variable to specify the user ID as the directory name or share that I want to map to. I am unable to find a list of variables that win98 will recognize. These are not home directories.
Does anyone have any ideas?