Discussion Locked

kixtart woes

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm trying to run a script to map a drive on my Win2000 PDC. My path is: //server1/username (username is a share).
My current line is:
USE N: \\SERVER1\%USERID%
My Kixtart script runs and doesn't report errors. I even have another line:
USE N: //SERVER1/PUBLIC and it works OK.

I know my permissions are OK as I can manually map to my user folder.

My work stations are all Win98Se.

What's wrong???

10 replies

by christopher hill

You need to change %USERID% to @USERID. %USERID% is an environment variable which Windows 98SE doesn't set up, whereas @USERID is a KiXtart macro which always works.

by christopher hill

(actually %USERNAME% is the name of the environment variable. 9x still doesn't set it up though - it's NT only. And if you did want to use an environment variable in KiXtart you don't need the % at the end.

by wmr029

when we are doing some mappings for ou win 98 machines we end up having to use syntax along the lines of:

shell "net use n: /home /yes"

when we want to map a use to their home share we have to go about it as:

use N: /delete
use N: @HOMESHR
If @ERROR = 0
N:
CD @HOMEDIR ; chage directory to user's home dir
EndIF

hope this helps

This discussion is closed to new replies.