NT username Variable and Windows 95

IJump

Diamond Member
Feb 12, 2001
4,640
11
76
I need use the username to process some things through the NT login script. This works fine on my NT/2000 workstations but not on Win95 workstations. Since Windows95 does not recognize the %username% variable like NT/2000, is there something I can use that will help me accomplish the same thing, such as mapping a network drive based on the user name other than the home directory:

net use \\server\%username%$ works fine in NT/2000 but not in Win95.

Thanks in advance for any help.
 

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
If you are using any Win9x machine to access files on a NT/2000 PC/Server you need to logon on with the apropriate username and password in the network logon box on the Win9x machine. The username and password also need to be setup on the NT/2000 machine with the applicable permissions set to access the directories/files. Unfortunately Win9x does not have the option to logon to network drives as a differnt user like NT/2000.

Also, Win9x does not support the NET command out of the box.
 

IJump

Diamond Member
Feb 12, 2001
4,640
11
76
Thanks, but....

The workstation is logging into the server fine. I need to be able to map several drives to folders that are shared based on user name on different servers.

For user abcd:
map a drive to abcd$ on server1
map a drive to abcd$ on server2

Why they have multiple folders on different servers is beyond me, but I get to deal with it. If anyone has any info on how this might be accomplished, let me know. I am down to writing a vb program to handle it, but I would rather not do that.

Thanks again, nightowl