5 replies
by jimbb
Sounds like you try to copy/restore something like roaming profiles. Have you considered ZENworks to do this for you?
Anyway, the login script can help you, either by executing an external command (like "#xcopy h:\*.* c:\somewhere"), then you don't need any variables. Or, since you set the user's home-directory anyway, why not copy from that drive-name from within your script, in stead of looking it up via-via?
Anyway, if you need to have some sort of a variable, you can use the login script to put a value in a DOS environment variable, to be re-used however you like. Try "set username=%LOGIN_NAME", for example.
Jim
by stubbsd
Easy!
Example
NDS User = ESTEBAN
At the login script of the container where the user resides add the following
SET USER=%LOGIN_NAME
This will place a SET USER=ESTEBAN at the DOS environment table of the client (Open a D.O.S) and type SET to see it)
Usually the NW home directory of ESTEBAN, resides in \\server\volume\home\esteban.
You can refered to this path using the USER environment variable like this:
\\server\volume\home\%USER%
and make a .bat file like this
REM clear the destination c: directory
deltree c:\myfiles\*.* /y
REM copy server files to c:\myfiles
copy \\server\volume\home\%user%\myfiles\*.* c:\myfiles
You can call this batch file from the user login script, the workstation or the container login script as it's last instruction
exit "mybacht.bat"
Allways watch CASE, BLANK SPACES, and " "
edt@bancobgn.com
by stubbsd
by stubbsd
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending