Article ID: 98706
This article was previously published under Q98706
Because the NET USE /HOME command places you at the root of your share, rather than the home directory in your share, you must manually change to your home directory. The procedure outlined below passes a variable (your logon name) to allow automatic changing to your home directory. It assumes that your home directory and login name are the same, and that your home directory is directly off of the root of your server share.
On the ServerBecause a LAN Manager login script cannot contain replaceable parameters, set up your login script like the file below:
Notice that the NET USE commands are redirected into a file on your local hard drive and called LOCAL.BAT. Also notice the first NET USE has only one redirect symbol(>). This is necessary to recreate the LOCAL.BAT file; all succeeding commands are appended to the end of the file by using the double redirect (>>).
NETLOGON.BAT ------------ echo net use s: \\servername\public >c:\local.bat echo net use v: \\servername\apps >>c:\local.bat echo net use r: /home >>c:\local.bat
On Each WorkstationCreate a batch file similar to the batch file below:
Execute the LOGON.BAT file with a parameter of your username--"logon username"--where username becomes the %1 variable.
LOGON.BAT --------- net logon %1 call c:\local.bat cd r:\%1 r:
The flow of the batch file is:
Article ID: 98706 - Last Review: October 31, 2006 - Revision: 1.1