Well, I'm wreaking havoc in the Starters forum, why not here?

I have batch file that checks for kix files on each PCs hard drive. Once they are copied, it will then call a kix program. In this program I am trying to delete existing drives and map the appropriate ones for that user.

I am using the Select...Case to do all of this, but for some reason, it is not going thru the list. Here is a sample of my script:

SELECT
CASE @USERID = "CARRK"
USE * /Delete
USE F: "\\DSMNT2\RECMONTHLY"
USE G: "\\DSMNT2\FMAGIC"
USE S: "\\DSMNT4\PVSW$"
USE T: "\\DSMNT4\DRIVE_S$"
USE H: "\\DSMNT2\CARRK"
USE I: "\\DSMNT2\NETLOGON\IT"
USE J: "\\DSMNT2\RECORDERS"
USE O: "\\DSMNT2\DP MY FILES$"
USE F: "\\DSMNT2\RECMONTHLY"
Sleep(3)
Call "AddressWarning.txt"
CASE @USERID = "CALVINM"
USE * /Delete
USE F: "\\DSMNT2\RECMONTHLY"
USE G: "\\DSMNT2\FMAGIC
USE H: "\\DSMNT2\CALVINM$"
USE J: "\\DSMNT2\OPTISERV1"
USE L: "\\DSMNT2\COPELANDC"
USE M: "\\DSMNT2\MCVEYC"
Sleep(3)
Call "AddressWarning.txt"
ENDSELECT

When I login (CARRK), as long as my CASE is first, it has no problem. But, if I put my CASE anywhere else, it does not do anything. If I check my mapped drives, they all have red X's on them.

The program "AddressWarning.txt" also has a CASE...SELECT, but it seems to have no problem sifting thru them. The only difference that I can see is that there aren't as many tasks connected to each one:

SELECT

CASE @USERID = "CALVINM"
$NAME = "MISHELLE HAMILTON"
CASE @USERID = "ERICKSONG"
$NAME = "GINA ERICKSON"
CASE @USERID = "LEVINSONK"
$NAME = "KAY LEVINSON"
CASE @USERID = "CARRK"
$NAME = "KIM CARR"

ENDSELECT
I then use $NAME in a MessageBox string.
Also, with the above program, I have 2 variables declared before doing the CASE. In the first program, the CASE/SELECT is the very first thing.

I'm using Windows2000 server and the PCs are Windows2000 as well. I am using the most recent version of Kixtart.

What am I missing?
[Frown]
Thanks,
Khaunani