I have been viewing several bb posts on Mapping and it seems to be an issue that is beat to death. I am having the same problem, but I have not been able to extract the information from the postings I have read to make the N: and the O: drive mappings in my script run. My goal is to get rid of several scripts and just have one. If anyone could help, I would greatly appreciate it.

Here is the environment and 2 sections of the code I am working with…

Server: Win2k
Clients: Win2k
KIX: 2001
$ServerName = \\mdch-ds1

code:
 ;*********************** Initialization ***********************

? "Processing Logon Script for @USERID..."

SETCONSOLE ("HIDE") = 0

$ServerName = "\\MDCH-DS1"

USE * /delete

;****************** Map Network Directories *******************

? ? "Mapping Department Directory to N:\..."
? "Mapping Personal Directory to O:\..."

SELECT

CASE INGROUP ("Financial")
USE N: "$ServerName\Financial"
USE O: "$ServerName\Financial\@USERID"
USE P: "$ServerName\Financial\" + @USERID
? " Connected to FINANCIAL!"
GOTO FINISH

CASE INGROUP ("Human Resources")
USE N: "$ServerName\Human Resources"
USE O: "$ServerName\Human Resources\@USERID"
? " Connected to FINANCIAL!"
GOTO FINISH

CASE INGROUP ("Information Systems")
USE N: "$ServerName\Information Systems"
USE O: "$ServerName\Information Systems\@USERID"
? " Connected to INFORMATION SYSTEMS!"
GOTO FINISH

CASE INGROUP ("Secretaries & Assistants")
USE N: "$ServerName\Secretaries & Assistants"
USE O: "$ServerName\Secretaries & Assistants\" + @USERID
? " Connected to SECRETARIES & ASSISTANTS!"
GOTO FINISH

CASE 1
BEEP
SETCONSOLE ("MAXIMIZE") = 0
? " Unrecognized Group, NO DRIVES MAPPED!"
? ? "Please Contact Thomas Michaels At x5010 For Help!"
SLEEP 5
GOTO FINISH

ENDSELECT



Notice that I have also tried several uses of the @userid command to try to get it to work. All the shares I am trying to connect to are already setup and the folders for each user are also setup. I’m sooo close and I’d like to be able to put my script into production this coming week. The N: or the O: drives aren’t mapping and I can’t figure it out. Also, how do I check the @error and @serror macros to see the errors?

Here is the output I receive from running the script. Notice that there are two ‘1’s that show up (I bolded them)…

quote:
Processing Log In Script for Test1

Checking Administrator Access...
Administrator Access DENIED!

Checking Quick Books Access...
Quick Books Access GRANTED!

Mapping Department Directory to N:\...
Mapping Personal Directory to O:\...1
Unrecognized Group, NO DRIVES MAPPED!

Please Contact Thomas Michaels At x5010 For Help!

Your Logon Script is Complete...


Wow...I never knew scripting could get so involved, but I look forward to future!

[ 07 September 2001: Message edited by: Thomas A. Michaels ]