#47712 - 2003-11-11 01:51 PM
Re: Help with script in Netlogon folder
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Have you got any debug lines to ensure that the script is running?
How about adding some status information, so that you know that the INI file is being read?
I'd change the INI file path, as the reference will almost certainly fail.
This version will set the INI file path to the correct place, and display comments as it is doing the mapping:
; Set location of ini file, depending if we are logging on or testing. If @LOGONMODE $sGroupINI=@LSERVER+"\NetLogon\groups.ini" Else $sGroupINI=".\groups.ini" EndIf For Each $group in Split(ReadProfileString($sGroupINI,'',''),Chr(10)) If $group AND InGroup($group) For Each $drive In Split(ReadProfileString($sGroupINI,$group,''),Chr(10)) If $drive $resource=readprofilestring($sGroupINI,$group,$drive) $rc=execute('$$resource='+$resource) Use $drive+':' /delete /persistent "Mapping drive "+$drive+": to "+$resource Use $drive+':' $resource If @ERROR " ***ERROR***" ? "["+@ERROR+"] "+@SERROR ? Else " OK" ? EndIf EndIf Next EndIf Next
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 3139 anonymous users online.
|
|
|