#73928 - 2003-03-10 06:54 PM
Do not run the script in Windows 95/98
|
Mabraham-ca
Fresh Scripter
Registered: 2003-02-17
Posts: 30
Loc: Toronto
|
Do not run the script in Windows 95/98
following script to create a home directory for the users and map it to their workstation. I have run the RMTSHARE to share the folders in the server, script do not work as a login script from Windows 95/98 (I have not tried from Windows NT or W2K). If run this script from the client workstation it work fine . KIX RPC service and other kix files are in the netlogon directory also I have copied kix32 and other files to client system directory.
The login script is called by a batch script and I can see some thing is happening in the client workstation when I logon but script do not create the directory or map the shares as listed below.
md "\\myt-1001\home\@userid" @error=0 USE Z: /DELETE USE Z: "\\myt-1001\@USERID"
|
|
Top
|
|
|
|
#73934 - 2003-03-10 10:55 PM
Re: Do not run the script in Windows 95/98
|
Mabraham-ca
Fresh Scripter
Registered: 2003-02-17
Posts: 30
Loc: Toronto
|
Friends, After I removed the "@error=0" script worked. The following script will Ctreate new home directories for the users and map to the P drive (insted of Z drive). Thanks for all your help.
md "\\myt-1001\home\@userid" USE p: /DELETE USE p: "\\myt-1001\@USERID"
|
|
Top
|
|
|
|
#73940 - 2003-03-11 09:16 PM
Re: Do not run the script in Windows 95/98
|
Mabraham-ca
Fresh Scripter
Registered: 2003-02-17
Posts: 30
Loc: Toronto
|
Sorry guys, I am not familiar with in depth scripting. Root directory of the home drive shared for every one, however, individual home directories are shared with "userid$" this will prevent other users accessing others home directory. In terms of creating new directories - is there are any ways I can provide some command that if the directory is existed already do not execute the command.
please advise what is the best mechanism to do this.
Thanks.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2870 anonymous users online.
|
|
|