Page 1 of 2 12>
Topic Options
#24967 - 2002-07-12 11:32 AM Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Hi

Having a problem with the following script :
code:
  
?"- 1a-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("MOVED_USERS")
?"- 1b-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB gla
?"- 1c-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 1e-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GRAMPIAN-GRP")
?"- 1f-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB gra
?"- 1g-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 1i-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("PANDD-GRP")
?"- 1j-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB pan
?"- 1k-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 1m-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("PRIME-GRP")
?"- 1n-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB pri
?"- 1o-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 1s-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 1s-"+@time+"-"+$_debug_name+"- @error @serror"? :gla
?"- 1s-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 1t-"+@time+"-"+$_debug_name+"- @error @serror"? IF @inwin = 1
?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB nt
?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB win95
?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? :end
?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? ? "script completed"
?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT
?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? :nt
?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? IF %type% = "server"
?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? IF RedirectOutput("\\Gfclnt03\Users\LoginLogs\@WKSTA.log", 1) = 0 IF RedirectOutput($_debug_file) ENDIF ; -kixstrip-
?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Opened '\\Gfclnt03\Users\LoginLogs\@WKSTA.log' "+@time
?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? ? "USERS NAME IS " + @fullname
?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? ? "MACHINE NAME IS " + @wksta
?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? ? "IP ADDRESS IS " + @ipaddress0
?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? ? "CPU IS " + @cpu " AT " + @mhz " MHZ"
?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? ? "OPERATING SYSTEM IS " + @producttype
?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? ? "SERVICE PACK IS " + @csd
?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? ?
?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? ? "ERRORS ARE " +@error " WHICH MEANS " + @serror
?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? ?
?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("IT-PRINT1-GRP")
?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\AITSL502")
?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\AITSL501")
?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? $null=SetDefaultPrinter("\\Gfclnt04\AITSL502")
?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Added printer connection.........."
?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("IT-PRINT2_GRP")
?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\AITSL502")
?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"? $null=AddPrinterConnection("\\Gfclnt04\AITSL501")
?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? $null=SetDefaultPrinter("\\Gfclnt04\AITSL501")
?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Added printer connection.........."
?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Scottish Magazines")
?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\GAPPNT04\ScottishMagazines"
?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("COGNOS-USERS")
?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: /delete /persistent
?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: "\\GTPSNT01\cognos"
?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Solus-grp")
?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\GAPPNT04\SolusBookingSystem"
?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("checkline-grp")
?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? USE H: /delete /persistent
?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? USE H: "\\GCKLNT01\wineftnt"
?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("S1-GROUP")
?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /delete /persistent
?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: "\\GAPPNT03\S1"
?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 72-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("SATEAM-GRP")
?"- 73-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: /delete /persistent
?"- 74-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: "\\GMSHNT01\TECH_SUPPORT"
?"- 75-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 76-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 77-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("CUSTSERV-GRP")
?"- 78-"+@time+"-"+$_debug_name+"- @error @serror"? USE R: /delete /persistent
?"- 79-"+@time+"-"+$_debug_name+"- @error @serror"? USE R: "\\GAPPNT02\CSDBase"
?"- 80-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 81-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 82-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("CENTRALS-GRP")
?"- 83-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 84-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\GFCLNT04\CentralServices"
?"- 85-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 86-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 87-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNCENTRALS-GRP")
?"- 88-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 89-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\QCLUNT01\CentralServices"?"- 90-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 91-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 92-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("BROADCAS-GRP")
?"- 93-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 94-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\GFCLNT04\Broadcasting"
?"- 95-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 96-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 97-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("BROADDIST-GRP")
?"- 98-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: /delete /persistent
?"- 99-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: "\\GFCLNT04\Broadcasting"
?"- 100-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 101-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 102-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNBROADCAST-GRP")
?"- 103-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: /delete /persistent
?"- 104-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\QCLUNT01\Broadcasting"
?"- 105-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 106-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 107-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("PUBLISHI-GRP")
?"- 108-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: /delete /persistent
?"- 109-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: "\\GFCLNT04\Publishing"
?"- 110-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 111-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 112-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("SUNDAY-GRP")
?"- 113-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /delete /persistent
?"- 114-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: "\\GMSHNT01\SUNDAY"
?"- 115-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 116-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 117-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MARKETIN-GRP")
?"- 118-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: /delete /persistent
?"- 119-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: "\\GAPPNT05\Despatch_DB"
?"- 120-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 121-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 122-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MARKETDB-GRP") ;
?"- 123-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /delete /persistent
?"- 124-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: "\\GAPPNT05\NSDOCS"
?"- 125-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 126-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 127-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("STE-GRP")
?"- 128-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: /delete /persistent
?"- 129-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: "\\GFCLNT04\Broadcasting"
?"- 130-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 131-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 132-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNPUBLIC-GRP") ;
?"- 133-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 134-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\QCLUNT01\Public"
?"- 135-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 136-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 137-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MAGASUBS-GRP")
?"- 138-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /delete /persistent
?"- 139-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: "\\GAPPNT02\MAGAZINES"
?"- 140-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 141-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 142-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("RESEARCH-GRP")
?"- 143-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: /delete /persistent
?"- 144-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: "\\GAPPNT02\RESEARCH"
?"- 145-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 146-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 147-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /delete /persistent
?"- 148-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: "\\GMSHNT01\Public"
?"- 149-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 150-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MOVED_USERS")
?"- 151-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL 'SUBST U: /D '
?"- 152-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL 'SUBST U: "\\gfclnt03\users\%username%" '
?"- 156-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 157-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 158-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 159-"+@time+"-"+$_debug_name+"- @error @serror"? :win95
?"- 160-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 161-"+@time+"-"+$_debug_name+"- @error @serror"? IF RedirectOutput("\\Gfclnt03\Users\LoginLogs\@WKSTA.log", 1) = 0 IF RedirectOutput($_debug_file) ENDIF ; -kixstrip-
?"- 162-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Opened '\\Gfclnt03\Users\LoginLogs\@WKSTA.log' "+@time
?"- 163-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 164-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 165-"+@time+"-"+$_debug_name+"- @error @serror"? ? "USERS NAME IS " + @fullname
?"- 166-"+@time+"-"+$_debug_name+"- @error @serror"? ? "MACHINE NAME IS " + @wksta
?"- 167-"+@time+"-"+$_debug_name+"- @error @serror"? ? "IP ADDRESS IS " + @ipaddress0
?"- 168-"+@time+"-"+$_debug_name+"- @error @serror"? ? "CPU IS " + @cpu
?"- 169-"+@time+"-"+$_debug_name+"- @error @serror"? ? "OPERATING SYSTEM IS " + @producttype
?"- 170-"+@time+"-"+$_debug_name+"- @error @serror"? ? "SERVICE PACK IS " + @csd
?"- 171-"+@time+"-"+$_debug_name+"- @error @serror"? ?
?"- 172-"+@time+"-"+$_debug_name+"- @error @serror"? ? "ERRORS ARE " +@error " WHICH MEANS " + @serror
?"- 173-"+@time+"-"+$_debug_name+"- @error @serror"? ?
?"- 174-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 175-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Scottish Magazines")
?"- 176-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 177-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\GAPPNT04\ScottishMagazines"
?"- 178-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 179-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 180-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Solus-Grp")
?"- 181-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 182-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\GAPPNT04\SolusBookingSystem"
?"- 183-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 184-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 185-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("ADQUICK-GRP")
?"- 186-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: /delete /persistent
?"- 187-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: "\\GTPSNT01\Quick"
?"- 188-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 189-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 190-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("CUSTSERV-GRP")
?"- 191-"+@time+"-"+$_debug_name+"- @error @serror"? USE R: /delete /persistent
?"- 192-"+@time+"-"+$_debug_name+"- @error @serror"? USE R: "\\GAPPNT02\CSDBase"
?"- 193-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 194-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 195-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("SATEAM-GRP")
?"- 196-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: /delete /persistent
?"- 197-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: "\\GMSHNT01\TECH_SUPPORT"
?"- 198-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 199-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 200-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MOVE-GRP")
?"- 201-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 202-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\GFCLNT04\CentralServices"
?"- 203-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 204-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 205-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("CENTRALS-GRP") ;
?"- 206-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 207-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\GFCLNT04\CentralServices"
?"- 208-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 209-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 210-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNCENTRALS-GRP") ;
?"- 211-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 212-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\QCLUNT01\CentralServices"
?"- 213-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 214-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 215-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("BROADCAS-GRP")
?"- 216-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 217-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\GFCLNT04\Broadcasting"
?"- 218-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 219-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 220-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("BROADDIST-GRP")
?"- 221-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: /delete /persistent
?"- 222-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: "\\GFCLNT04\Broadcasting"
?"- 223-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 224-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 225-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNBROADCAST-GRP")
?"- 226-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: /delete /persistent
?"- 227-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\QCLUNT01\Broadcasting"
?"- 228-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 229-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 230-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("PUBLISHI-GRP")
?"- 231-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: /delete /persistent
?"- 232-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: "\\GFCLNT04\Publishing"
?"- 233-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 234-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 235-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("S1-GROUP")
?"- 236-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /delete /persistent
?"- 237-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: "\\GAPPNT03\S1"
?"- 238-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 239-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 240-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("COGNOS-USERS")
?"- 241-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: /delete /persistent
?"- 242-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: "\\GTPSNT01\cognos"
?"- 243-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 244-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 245-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("SUNDAY-GRP")
?"- 246-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /delete /persistent
?"- 247-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: "\\GMSHNT01\Sunday"
?"- 248-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 249-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 250-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("STE-GRP")
?"- 251-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: /delete /persistent
?"- 252-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: "\\GFCLNT04\Broadcasting"
?"- 253-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 254-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 255-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MARKETIN-GRP")
?"- 256-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: /delete /persistent
?"- 257-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: "\\GAPPNT05\Despatch_DB"
?"- 258-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 259-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 260-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MARKETDB-GRP")
?"- 261-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /delete /persistent
?"- 262-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: "\\GAPPNT05\NSDOCS"
?"- 263-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 264-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 265-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MAGASUBS-GRP")
?"- 266-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /delete /persistent
?"- 267-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: "\\GAPPNT02\MAGAZINES"
?"- 268-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 269-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 270-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("RESEARCH-GRP")
?"- 271-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: /delete /persistent
?"- 272-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: "\\GAPPNT02\RESEARCH"
?"- 273-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 274-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 275-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("GPNPUBLIC-GRP") ;
?"- 276-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 277-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\QCLUNT01\Public"
?"- 278-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 279-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 280-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /delete /persistent
?"- 281-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: "\\GMSHNT01\Public"
?"- 282-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 283-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MOVED_USERS")
?"- 284-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /delete /persistent
?"- 285-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: "\\gfclnt03\users"
?"- 286-"+@time+"-"+$_debug_name+"- @error @serror"? CD U:\users\@userid
?"- 290-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 291-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 292-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 293-"+@time+"-"+$_debug_name+"- @error @serror"? :gra
?"- 294-"+@time+"-"+$_debug_name+"- @error @serror"? IF @INWIN = 1 GOSUB gnt
?"- 295-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE GOSUB gwin95
?"- 296-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 1p-"+@time+"-"+$_debug_name+"- @error @serror"? :end
?"- 1q-"+@time+"-"+$_debug_name+"- @error @serror"?? "script completed"
?"- 1r-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 298-"+@time+"-"+$_debug_name+"- @error @serror"? :gnt
?"- 299-"+@time+"-"+$_debug_name+"- @error @serror"? IF %type% = "server"
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 300-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 301-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 302-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("S1-GROUP")
?"- 303-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /delete /persistent
?"- 304-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: "\\GAPPNT03\S1"
?"- 305-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 306-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 307-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("ADQUICK-GRP")
?"- 308-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: /delete /persistent
?"- 309-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: "\\GTPSNT01\Quick"
?"- 310-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 311-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 312-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("CENTRALS-GRP")
?"- 313-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 314-"+@time+"-"+$_debug_name+"- @error @serror"? USE "J: \\GFCLNT04\CentralServices"
?"- 315-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 316-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 317-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("BROADCAS-GRP")
?"- 318-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 319-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\GFCLNT04\Broadcasting"
?"- 320-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 321-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 322-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("BROADDIST-GRP")
?"- 323-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: /delete /persistent
?"- 324-"+@time+"-"+$_debug_name+"- @error @serror"? USE I: "\\GFCLNT04\Broadcasting"
?"- 325-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 326-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 327-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNCENTRALS-GRP")
?"- 328-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 329-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\QCLUNT01\CentralServices"
?"- 330-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 331-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 332-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNBROADCAST-GRP")
?"- 333-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: /delete /persistent
?"- 334-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\QCLUNT01\Broadcasting"
?"- 335-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 336-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 337-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GRAMPIAN-GRP")
?"- 338-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /delete /persistent
?"- 339-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: "\\GMSHNT01\Public"
?"- 340-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 341-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 342-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNPUBLIC-GRP")
?"- 343-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 344-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\QCLUNT01\Public"
?"- 345-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 346-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 347-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("LOCAL_ADMINS")
?"- 348-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL 'SUBST U: /D '
?"- 349-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 350-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL 'SUBST U: /D '
?"- 351-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL 'SUBST U: "\\QCLUNT01\users\%username%"
?"- 352-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 353-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 354-"+@time+"-"+$_debug_name+"- @error @serror"? :gwin95
?"- 355-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 356-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("ADQUICK-GRP")
?"- 357-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: /delete /persistent
?"- 358-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: "\\GTPSNT01\Quick"
?"- 359-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 360-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 361-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("CENTRALS-GRP")
?"- 362-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 363-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\GFCLNT04\CentralServices"
?"- 364-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 365-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 366-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("BROADCAS-GRP")
?"- 367-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 368-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\GFCLNT04\Broadcasting"
?"- 369-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 370-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 371-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GRAMPIAN-GRP")
?"- 372-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /delete /persistent
?"- 373-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: "\\GMSHNT01\Public"
?"- 374-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 375-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 376-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("SUNDAY-GRP")
?"- 377-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /delete /persistent
?"- 378-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: "\\GMSHNT01\Sunday"
?"- 379-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 380-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 381-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("S1-GROUP")
?"- 382-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /delete /persistent
?"- 383-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: "\\GAPPNT03\S1"
?"- 384-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 385-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 386-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNCENTRALS-GRP")
?"- 387-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /delete /persistent
?"- 388-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: "\\QCLUNT01\CentralServices"
?"- 389-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 390-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 391-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNBROADCAST-GRP")
?"- 392-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: /delete /persistent
?"- 393-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\QCLUNT01\Broadcasting"
?"- 394-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 395-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 396-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("GPNPUBLIC-GRP")
?"- 397-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: /delete /persistent
?"- 398-"+@time+"-"+$_debug_name+"- @error @serror"? USE Q: "\\QCLUNT01\Public"
?"- 399-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 400-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 401-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /delete /persistent
?"- 402-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: "\\QCLUNT01\users"
?"- 403-"+@time+"-"+$_debug_name+"- @error @serror"? cd U:\users\@USERID
?"- 404-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 405-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 408-"+@time+"-"+$_debug_name+"- @error @serror"? :pan
?"- 409-"+@time+"-"+$_debug_name+"- @error @serror"? IF @INWIN = 1 GOSUB pnt
?"- 410-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE GOSUB p95
?"- 411-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 1p-"+@time+"-"+$_debug_name+"- @error @serror"? :end
?"- 1q-"+@time+"-"+$_debug_name+"- @error @serror"? ? "script completed"
?"- 1r-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT
?"- 412-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 413-"+@time+"-"+$_debug_name+"- @error @serror"? :pnt
?"- 414-"+@time+"-"+$_debug_name+"- @error @serror"? IF %type% = "server"
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 415-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 416-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 417-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 418-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\LFILNT01\PearlAndDean"
?"- 419-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 420-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 421-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\LAPPNT01\ACT"
?"- 422-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 423-"+@time+"-"+$_debug_name+"- @error @serror"? ;USE P: /delete /persistent
?"- 424-"+@time+"-"+$_debug_name+"- @error @serror"? ;USE P: "\\LBDCNT01\Public"
?"- 425-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 426-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /delete /persistent
?"- 427-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: "\\LBDCNT01\%usersname%"
?"- 428-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 429-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 430-"+@time+"-"+$_debug_name+"- @error @serror"? :p95
?"- 431-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 432-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\LFILNT01\PearlAndDean "
?"- 433-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 434-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /delete /persistent
?"- 435-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: "\\LAPPNT01\ACT"
?"- 436-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 437-"+@time+"-"+$_debug_name+"- @error @serror"? ;USE P: /delete /persistent
?"- 438-"+@time+"-"+$_debug_name+"- @error @serror"? ;USE P: "\\LBDCNT01\Public"
?"- 439-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 440-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /delete /persistent
?"- 441-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: "\\lbdcnt01\@userid"
?"- 442-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 443-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 446-"+@time+"-"+$_debug_name+"- @error @serror"? :pri
?"- 447-"+@time+"-"+$_debug_name+"- @error @serror"? IF @INWIN = 1 GOSUB pmnt
?"- 448-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE GOSUB pm95
?"- 449-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 444-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 1p-"+@time+"-"+$_debug_name+"- @error @serror"? :end
?"- 1q-"+@time+"-"+$_debug_name+"- @error @serror"? ? "script completed"
?"- 1r-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT
?"- 450-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 451-"+@time+"-"+$_debug_name+"- @error @serror"? :pmnt
?"- 452-"+@time+"-"+$_debug_name+"- @error @serror"? IF %type% = "server"
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 453-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 454-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 455-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("PRIMEDB-GRP")
?"- 456-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 457-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\LAPPNT02\AREV31"
?"- 458-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 459-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /delete /persistent
?"- 460-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: "\\LAPPNT02\PSDATA"
?"- 462-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 444-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 297-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 463-"+@time+"-"+$_debug_name+"- @error @serror"? :pm95
?"- 464-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP ("PRIMEDB-GRP")
?"- 465-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /delete /persistent
?"- 466-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: "\\LAPPNT02\AREV31"
?"- 467-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 468-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /delete /persistent
?"- 469-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: "\\LAPPNT02\PSDATA"
?"- 471-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 472-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN

When users logon from the Grampain-Grp they are not mapping drives - script is not going to the Gosub gra

Any idea's ??? [Confused]

[ 22 July 2002, 18:13: Message edited by: Cazzjh ]
_________________________
Cazzjh

Top
#24968 - 2002-07-12 01:32 PM Re: Problems with script - Gosub command
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Every "IF" needs and "Endif". As you vcan see your code is malformed.
code:
IF INGROUP ("MOVED_USERS")
GOSUB gla
ELSE
IF INGROUP ("GRAMPIAN-GRP")
GOSUB gra
ELSE
IF INGROUP ("PANDD-GRP")
GOSUB pan
ELSE
IF INGROUP ("PRIME-GRP")
GOSUB pri
ENDIF

I would suggest simplifing your code by using the "select..endselect" construct.
code:
select
case INGROUP ("MOVED_USERS") GOSUB "gla"
case INGROUP ("GRAMPIAN-GRP") GOSUB "gra"
case INGROUP ("PANDD-GRP") GOSUB "pan"
case INGROUP ("PRIME-GRP") GOSUB "pri"
endselect



[ 12 July 2002, 13:33: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24969 - 2002-07-12 02:08 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Hi

Tried this and it still does not seem to be working - it will work for the NT part but not the windows 95 part.

[Frown]
_________________________
Cazzjh

Top
#24970 - 2002-07-12 02:32 PM Re: Problems with script - Gosub command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
cazz, if you suspect your script is not going to gra do a line:
? "in gra"

just after:
:gra

also, could you post your current script or mail it. I could have some simplifying suggestions...
could still make the script shorter and easier to read and so on...

cheers,

[ 12 July 2002, 14:33: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#24971 - 2002-07-12 03:08 PM Re: Problems with script - Gosub command
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Why are you duplicating your code and running basically the same code for NT and Win95? Much of your code is exactly the same.

[ 12 July 2002, 15:08: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24972 - 2002-07-12 03:14 PM Re: Problems with script - Gosub command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The first IF-ELSe-ENDIF section is incorrect. Please read the manual about correct syntaxt. Corrected syntax:
code:
IF INGROUP ("MOVED_USERS")
GOSUB gla
ELSE
IF INGROUP ("GRAMPIAN-GRP")
GOSUB gra
ELSE
IF INGROUP ("PANDD-GRP")
GOSUB pan
ELSE
IF INGROUP ("PRIME-GRP")
GOSUB pri
ENDIF
ENDIF
ENDIF
ENDIF

Better would be to use a SELECT-CASe-ENDSELECT statement since yoiur choices are mutually exclusive:
code:
SELECT
CASE INGROUP ("MOVED_USERS")
GOSUB gla
CASE INGROUP ("GRAMPIAN-GRP")
GOSUB gra
CASE INGROUP ("PANDD-GRP")
GOSUB pan
CASE INGROUP ("PRIME-GRP")
GOSUB pri
CASE 1
; not in any of the above groups
ENDSELECT

Uups, Howard, I think I scrolled by your code without noticing it, wasn't intentional. [Embarrassed]

[ 12 July 2002, 15:20: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#24973 - 2002-07-12 03:14 PM Re: Problems with script - Gosub command
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Cazzhj,

We advise you:

use the original script for modifications
and
use "kixstrip /debug" output only for debugging.

kixstrip doesn't have the capability to remove unwanted
debugging elements from your script. also you make it
impossible for kixstrip
- to layout your script.
- to find the right missing quotations. debugging elements contain also quotations.

Kixstrip returns for your version as screen output
code:
 Kixstrip 4.10 (vs 3.18e)     (c) MCA - scripting@wanadoo.nl - 2000, 2001, 2002
.
1 .........................E(492)
.
Warning KIXSTRIP: 364 line incomplete "single quotation".
Warning KIXSTRIP: 364 line incompleted.
.
Kixstrip 4.10 (vs 3.18e) 3.13 (sec)
.
input 492 script.kix
output 492 debug.kix (skip: 0 blocks: 0 labels: 16)
block_check -ERROR- block_errors=2
block_structures=82 labels=16
tab=6 (default)
.
Warning KIXSTRIP: 2 errors in block structure(s). missing statement(s).
- do:until [0:0]
- for|each:in|to:step|next [0|0:0|0:0|0]
- function:endfunction [0:0]
-ERROR- - if:else:endif [82:8:80]
- select:case:endselect [0:0:0]
- while:loop [0:0]
82 block_structures found.
Informative KIXSTRIP: no UDF's found.
Warning KIXSTRIP: 1 line is incompleted.
rerun program with option "/block_check /show_errors".
Warning KIXSTRIP: some lines contains errors or possible errors.
.
active options:
/Block_Check /Headers /Print /Show_Structure /TAB=6 /Translate
inactive options:
/NoCombine /NoDebug /NoPerformance /NoProgress /NoShow_Errors
/NoLicense: (not.specified)

and you doesn't get any structur in your version.

greetings.

btw: some remarks about the code
- GOSUB calls end with a RETURN
- don't use ":end" too much times
- your code
code:
....
ENDIF
USE U: /delete /persistent
USE U: "\\QCLUNT01\users"
CD U:\users\@userid
ENDIF
; -------> Warning KIXSTRIP: 349 block "if/else/endif" incompleted. starting point of block structure missing.
; -------> Warning KIXSTRIP: 349 block incompleted.

was missing an "IF Ingroup" statement or "ENDIF" is too much.
please return for Lonkero to the board, what is should be.

[ 12 July 2002, 15:16: Message edited by: MCA ]
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#24974 - 2002-07-12 03:18 PM Re: Problems with script - Gosub command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I would seriously rethink the way you map drives. A better approach might be to put the drive mappings into an .INI file. This way you would be shorten the whole IF-ENDIF part.
_________________________
There are two types of vessels, submarines and targets.

Top
#24975 - 2002-07-12 04:04 PM Re: Problems with script - Gosub command
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You have an extreme duplication of code.

You may want to consider something like the sample for "GLA" below. I have not analyzed the level of duplication between the subroutines GLA, GRA, PAN , and PRI. You should strive to reduce the duplication. Doing so will make maitenance much easier.
code:
:GLA
? "USERS NAME IS " + @fullname
? "MACHINE NAME IS " + @wksta
? "IP ADDRESS IS " + @ipaddress0
? "CPU IS " + @cpu
? "OPERATING SYSTEM IS " + @producttype
? "SERVICE PACK IS " + @csd
?
? "ERRORS ARE " +@error " WHICH MEANS " + @serror
?
If @INWIN=1
If InGroup("IT-PRINT1-GRP")
$null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
$null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
$null=AddPrinterConnection("\\Gfclnt04\AITSL502")
$null=AddPrinterConnection("\\Gfclnt04\AITSL501")
$null=SetDefaultPrinter("\\Gfclnt04\AITSL502")
? "Added printer connection.........."
ENDIF

IF InGroup("IT-PRINT2_GRP")
$null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
$null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
$null=AddPrinterConnection("\\Gfclnt04\AITSL502")
$null=AddPrinterConnection("\\Gfclnt04\AITSL501")
$null=SetDefaultPrinter("\\Gfclnt04\AITSL501")
? "Added printer connection.........."
ENDIF

If InGroup("checkline-grp")
MapDrive("H:","GCKLNT01","wineftnt")
Endif

IF InGroup("MOVED_USERS")
SHELL 'SUBST U: /D '
SHELL 'SUBST U: "\\gfclnt03\users\%username%" '
ENDIF

IF InGroup("RESEARCH-GRP")
MapDrive("Z:","GAPPNT02","RESEARCH")
MapDrive("P:","GMSHNT01","Public")

ENDIF
Else ; Win95
IF InGroup("MOVED_USERS")
MapDrive("U:","gfclnt03","users")
CD U:\users\@userid
ENDIF
Endif

IF InGroup("Scottish Magazines")
MapDrive("N:","GAPPNT04","ScottishMagazines")
ENDIF

IF InGroup("Solus-Grp")
MapDrive("Q:","GAPPNT04","SolusBookingSystem")
ENDIF

IF InGroup("ADQUICK-GRP")
MapDrive("G:","GTPSNT01","Quick")
ENDIF

IF InGroup("CUSTSERV-GRP")
MapDrive("R:","GAPPNT02","CSDBase")
ENDIF

IF InGroup("SATEAM-GRP")
MapDrive("X:","GMSHNT01","TECH_SUPPORT")
ENDIF

IF InGroup("MOVE-GRP")
MapDrive("J:","GFCLNT04","CentralServices")
ENDIF

IF InGroup("CENTRALS-GRP") ;
MapDrive("J:","GFCLNT04","CentralServices")
ENDIF

IF InGroup("GPNCENTRALS-GRP") ;
MapDrive("N:","QCLUNT01","CentralServices")
ENDIF

IF InGroup("BROADCAS-GRP")
MapDrive("K:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("BROADDIST-GRP")
MapDrive("I:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("GPNBROADCAST-GRP")
MapDrive("O:","QCLUNT01","Broadcasting")
ENDIF

IF InGroup("PUBLISHI-GRP")
MapDrive("L:","GFCLNT04","Publishing")
ENDIF

IF InGroup("S1-GROUP")
MapDrive("V:","GAPPNT03","S1")
USE V: "\\GAPPNT03\S1"
ENDIF

IF InGroup("COGNOS-USERS")
MapDrive("Y:","GTPSNT01","cognos")
ENDIF

IF InGroup("SUNDAY-GRP")
MapDrive("S:","GMSHNT01","Sunday")
ENDIF

IF InGroup("STE-GRP")
MapDrive("M:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("MARKETIN-GRP")
MapDrive("T:","GAPPNT05","Despatch_DB")
ENDIF

IF InGroup("MARKETDB-GRP")
MapDrive("S:","GAPPNT05","NSDOCS")
ENDIF

IF InGroup("MAGASUBS-GRP")
MapDrive("F:","GAPPNT02","MAGAZINES")
ENDIF

IF InGroup("GPNPUBLIC-GRP") ;
MapDrive("Q:","QCLUNT01","Public")
MapDrive("P:","GMSHNT01","Public")
ENDIF
RETURN

;--------------------------------------------------------------------------------------------------
Function MapDrive($Drive, $Server, $Share)
Dim $Drive, $Server, $Share
Color c+/n
If $Drive<>"" and $Server<>"" and $Share<>""
$LogText="Connecting $Drive to \\$Server\$Share"
? $LogText
USE $Drive /Delete /Persistent
USE $Drive "\\$Server\$Share"
If @error=0
color g+/n
$x=" - Success"
"$x"
Else
color r+/n
$x=" - Failed: Error @error"
"$x"
$ErrorState=1
Endif
WriteLog ($LogText + $x)
Color w+/n
Else
WriteLog ("Function 'MapDrive' called with invalid parameters: '$Drive', '$Server', '$Share'")
Endif
Endfunction
;--------------------------------------------------------------------------------------------------
Function WriteLog($text)
dim $RC, $text, $LogFile, $Filehandle
$Filehandle = 1
$LogFile = "%temp%\logon.log"
$RC=Writeline ($Filehandle, "@Date @Time - $Text" + Chr(13) + Chr(10))
if $RC<0
$RC=Close ($Filehandle)
$RC=Open ($Filehandle, $LogFile, 5)
Select
Case $RC=-1
$RC=MessageBox ("Invalid file name ($LogFile) specified for log file.","Logon Script Error",48)
Case $RC=0
WriteLog ($Text)
Case $RC=>0
$RC=MessageBox ("Error($RC) while attempting to open log file ($LogFile).","Logon Script Error",48)
Endselect
Endif
EndFunction

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24976 - 2002-07-13 02:17 AM Re: Problems with script - Gosub command
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Howard,

A good reduction of it.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#24977 - 2002-07-16 05:38 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Thanks for that Howard - have modified it to be like :

code:
SELECT
CASE INGROUP ("MOVED_USERS")
GOSUB gla
CASE INGROUP ("GRAMPIAN-GRP")
GOSUB gra
CASE INGROUP ("PRIME-GRP")
GOSUB pri
CASE INGROUP ("PANDD-GRP")
GOSUB pan
CASE 1
; not in any of the above groups
ENDSELECT



:PRI

MapDrive("J:", "LAPPNT02", "AREV31")
MapDrive("F:", "LAPPNT02", "PSDATA")

RETURN

:PAN
IF @INWIN = 1
SHELL 'SUBST U: /D '
SHELL 'SUBST U: "\\lbdcnt01\%username%" '
MapDrive("J:", "LFILNT01", "PearlAndDean")
MapDrive("K:", "LAPPNT01", "ACT")

ELSE ; Win95
MapDrive("U:","lbdcnt01", "Users")
CD U:\users\@userid
MapDrive("J:", "LFILNT01", "PearlAndDean")
MapDrive("K:", "LAPPNT01", "ACT")
ENDIF

RETURN

:GLA
? "USERS NAME IS " + @fullname
? "MACHINE NAME IS " + @wksta
? "IP ADDRESS IS " + @ipaddress0
? "CPU IS " + @cpu
? "OPERATING SYSTEM IS " + @producttype
? "SERVICE PACK IS " + @csd
?
?
If @INWIN=1
If InGroup("IT-PRINT1-GRP")
$null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
$null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
$null=AddPrinterConnection("\\Gfclnt04\AITSL502")
$null=AddPrinterConnection("\\Gfclnt04\AITSL501")
$null=SetDefaultPrinter("\\Gfclnt04\AITSL502")
? "Added printer connection.........."
ENDIF

IF InGroup("IT-PRINT2_GRP")
$null=AddPrinterConnection("\\Gfclnt04\CITSL4C1")
$null=AddPrinterConnection("\\Gfclnt04\CITSLJ03")
$null=AddPrinterConnection("\\Gfclnt04\AITSL502")
$null=AddPrinterConnection("\\Gfclnt04\AITSL501")
$null=SetDefaultPrinter("\\Gfclnt04\AITSL501")
? "Added printer connection.........."
ENDIF

If InGroup("checkline-grp")
MapDrive("H:","GCKLNT01","wineftnt")
Endif

IF InGroup("MOVED_USERS")
SHELL 'SUBST U: /D '
SHELL 'SUBST U: "\\gfclnt03\users\%username%" '
ENDIF

IF InGroup("RESEARCH-GRP")
MapDrive("Z:","GAPPNT02","RESEARCH")
ENDIF

Else ; Win95

IF InGroup("MOVED_USERS")
MapDrive("U:","gfclnt03","users")
CD U:\users\@userid
ENDIF
Endif

:GRA
IF @INWIN = 1
IF InGroup("LOCAL_ADMINS")
SHELL "CMD /C SUBST U: /D"
ELSE
SHELL 'SUBST U: /D '
SHELL 'SUBST U: "\\QCLUNT01\users\%username%" '
ENDIF

ELSE ; win95

MapDrive("U:", "QCLUNT01", "users")
cd U:\users\@USERID
ENDIF

IF InGroup("Scottish Magazines")
MapDrive("N:","GAPPNT04","ScottishMagazines")
ENDIF

IF InGroup("Solus-Grp")
MapDrive("Q:","GAPPNT04","SolusBookingSystem")
ENDIF

IF InGroup("ADQUICK-GRP")
MapDrive("G:","GTPSNT01","Quick")
ENDIF

IF InGroup("CUSTSERV-GRP")
MapDrive("R:","GAPPNT02","CSDBase")
ENDIF

IF InGroup("SATEAM-GRP")
MapDrive("X:","GMSHNT01","TECH_SUPPORT")
ENDIF

IF InGroup("MOVE-GRP")
MapDrive("J:","GFCLNT04","CentralServices")
ENDIF

IF InGroup("CENTRALS-GRP") ;
MapDrive("J:","GFCLNT04","CentralServices")
ENDIF

IF InGroup("GPNCENTRALS-GRP") ;
MapDrive("N:","QCLUNT01","CentralServices")
ENDIF

IF InGroup("BROADCAS-GRP")
MapDrive("K:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("BROADDIST-GRP")
MapDrive("I:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("GPNBROADCAST-GRP")
MapDrive("O:","QCLUNT01","Broadcasting")
ENDIF

IF InGroup("PUBLISHI-GRP")
MapDrive("L:","GFCLNT04","Publishing")
ENDIF

IF InGroup("S1-GROUP")
MapDrive("V:","GAPPNT03","S1")
USE V: "\\GAPPNT03\S1"
ENDIF

IF InGroup("COGNOS-USERS")
MapDrive("Y:","GTPSNT01","cognos")
ENDIF

IF InGroup("SUNDAY-GRP")
MapDrive("S:","GMSHNT01","Sunday")
ENDIF

IF InGroup("STE-GRP")
MapDrive("M:","GFCLNT04","Broadcasting")
ENDIF

IF InGroup("MARKETIN-GRP")
MapDrive("T:","GAPPNT05","Despatch_DB")
ENDIF

IF InGroup("MARKETDB-GRP")
MapDrive("S:","GAPPNT05","NSDOCS")
ENDIF

IF InGroup("MAGASUBS-GRP")
MapDrive("F:","GAPPNT02","MAGAZINES")
ENDIF

IF InGroup("GPNPUBLIC-GRP") ;
MapDrive("Q:","QCLUNT01","Public")
ENDIF

MapDrive("P:","GMSHNT01","Public")

RETURN


;--------------------------------------------------------------------------------------------------
Function MapDrive($Drive, $Server, $Share)
Dim $Drive, $Server, $Share
Color c+/n
If $Drive<>"" and $Server<>"" and $Share<>""
$LogText="Connecting $Drive to \\$Server\$Share"
? $LogText
USE $Drive /Delete /Persistent
USE $Drive "\\$Server\$Share"
If @error=0
color g+/n
$x=" - Success"
"$x"
Else
color r+/n
$x=" - Failed: Error @error"
"$x"
$ErrorState=1
Endif
WriteLog ($LogText + $x)
Color w+/n
Else
WriteLog ("Function 'MapDrive' called with invalid parameters: '$Drive', '$Server', '$Share'")
Endif
Endfunction
;--------------------------------------------------------------------------------------------------
Function WriteLog($text)
dim $RC, $text, $LogFile, $Filehandle
$Filehandle = 1
$LogFile = "\\Gfclnt03\Users\LoginLogs\logon.log"
$RC=Writeline ($Filehandle, "@Date @Time - $Text" + Chr(13) + Chr(10))
if $RC<0
$RC=Close ($Filehandle)
$RC=Open ($Filehandle, $LogFile, 5)
Select
Case $RC=-1
$RC=MessageBox ("Invalid file name ($LogFile) specified for log file.","Logon Script Error",48)
Case $RC=0
WriteLog ($Text)
Case $RC=>0
$RC=MessageBox ("Error($RC) while attempting to open log file ($LogFile).","Logon Script Error",48)
Endselect
Endif
EndFunction


It still will not go to each section correctly. Have ran it through kixstrip and there are no errors. It just doesn't seem to be using the select statement correctly, doesn't matter if I change it to an if statement either - still will not work.

HELP!!!!!

[Confused]
_________________________
Cazzjh

Top
#24978 - 2002-07-16 05:55 PM Re: Problems with script - Gosub command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Give ENUMGROUP/ENUMLOCALGROUP a try to see which groups the user actually belongs too. Do it in a simple test script. Code for this is in the manual.
_________________________
There are two types of vessels, submarines and targets.

Top
#24979 - 2002-07-16 09:31 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Tried the enumlocalgroup - it returns as being in the correct groups - but it still doesn't work!!
_________________________
Cazzjh

Top
#24980 - 2002-07-16 09:37 PM Re: Problems with script - Gosub command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, what parts are not working?
_________________________
!

download KiXnet

Top
#24981 - 2002-07-16 09:40 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
This part :

code:
  SELECT
CASE INGROUP ("MOVED_USERS")
GOSUB gla
CASE INGROUP ("GRAMPIAN-GRP")
GOSUB gra
CASE INGROUP ("PANDD-GRP")
GOSUB pan
CASE 1
; not in any of the above groups
ENDSELECT

If windows 95, it seems to ignore if a user is a member of each of those groups and exits or in NT, it recognises GLA and GRA but not PRI or PAN, if a user is a member of any of those groups it will map drives for both of them regardless!!
_________________________
Cazzjh

Top
#24982 - 2002-07-16 09:46 PM Re: Problems with script - Gosub command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
your last posted code has the select case and after that the group things.
so they are executing twice.
after endselect write line:
exit 0

cheers,
_________________________
!

download KiXnet

Top
#24983 - 2002-07-16 09:50 PM Re: Problems with script - Gosub command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Is the KiXtart RPC service installed on ALL domain controllers?
_________________________
There are two types of vessels, submarines and targets.

Top
#24984 - 2002-07-16 09:51 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Tried that I am afraid - still does not work - I am getting pretty frustrated now!!

Yeah this service is replicated to all domain comtrollers

[ 16 July 2002, 21:52: Message edited by: Cazzjh ]
_________________________
Cazzjh

Top
#24985 - 2002-07-16 09:55 PM Re: Problems with script - Gosub command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What do you mean with replicated? Is it in the NETLOGON folder?
KiXtart RPC is a SERVICE, you have to run it as a service. Use the files in the XNET subfolder of the KiXtart ZIP package to install the service on all domain controllers and make sure it's running.

And read the FAQ about the KiXtart RPC service.
_________________________
There are two types of vessels, submarines and targets.

Top
#24986 - 2002-07-16 09:58 PM Re: Problems with script - Gosub command
Cazzjh Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 32
Loc: Glasgow, Scotland
Sorry got confused with kix32 - yes it is running as a service on both of our domain controllers [Embarrassed]
_________________________
Cazzjh

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 323 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.144 seconds in which 0.066 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org