Below is a section of code that I am trying to implement. The first section under the the first IF sets a list of default drive shares. This is followed by a series of IF statements that will assign drives based on if a person is in that group. I changed the script to remove internal naming but that was it.

 Code:
;/*For MyWork Office */
IF InGroup ("Wor MyWorkOffice Staff")
      ;/For General Users
      SETTIME "\\server-fs"
      USE P: "\\server-fs\@userid$"
      USE Q: "\\server-fs\common"
      USE X: "\\192.168.X.XX\database"
      USE Y: "\\192.168.X.XX\export"
      USE H: "\\192.168.X.X\fax-scan"

      ;/Mappings Based on Group Memberships
      IF InGroup ("Wor-MyWorkOffice-Loans")
	USE I: "\\server-fs\common\01-Loans"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-Tellers")
	USE J: "\\server-fs\common\02-Tellers"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-NewAcct")
	USE K: "\\server-fs\common\03-New Accounts"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-Collect")
	USE L: "\\server-fs\common\04-Collections"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-Book")
	USE M: "\\server-fs\common\05-Bookkeeping"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-ExecMgmt")
	USE N: "\\server-fs\common\06-Exec Mgmt"
      ENDIf
      IF InGroup ("Wor-MyWorkOffice-Operations")
	USE O: "\\server-fs\common\07-Operations"
      ENDIf
ENDIf

Whenever I run this using the script editor it lists each of the if statement checks but does not perform the use below it or even the endif. Can any of you guys see what I've missed?

Thanks.

-Dan


Edited by Allen (2009-02-12 04:25 PM)
Edit Reason: added code tags