hi

can anyone tell me how i can get this script to map a printer if it has a space in between the words that make up its name?

here is the code for the script

 Code:
Select
Case InGroup( 'Logon A' )
  $sPrinterList='\\apple\BW \\apple\BW colour'
 Case 1						; catch all, clear printerlist
  $sPrinterList = ''
EndSelect

If $sPrinterList				; if sPrinterList is defined, perform this logic
  For Each $sPrinter in Split($sPrinterList)
    'Checking printer ' + $sPrinter + @CRLF
    If PriMapState($sPrinter)
      '  Already connected' + @CRLF
    Else
      '  Connecting...' + @CRLF
      If AddPrinterConnection($sPrinter)
         '   **Error connecting: [' + @ERROR + '] ' + @SERROR + @CRLF
      Else
         '   Success!' + @CRLF
      EndIf
    EndIf
  Next
EndIf

Exit 0


very easy to many, a long time and sore eyes for me \:\( thanks


Edited by Richard H. (2010-03-18 02:26 PM)
Edit Reason: Added code tags