|
Oke but what I need is the exact group name. Not a loop.
Here is my code: ;*********************************************************************** ;** ;** Connect GroupShares to Drives ;** Function COnnectGroupDrives() ;****************************** ; GroupShares ;****************************** If Exist($FileLocation + "\shares.ini") If $group<>"" For $x = 1 to 10 $DriveDefinition = ReadProfileString($FileLocation + "\shares.ini", $group, "drive" + $x) If @ERROR = 0 If $DriveDefinition<>"" ConnectShare($DriveDefinition) EndIf Else Return EndIf Next EndIf EndIf EndFunction
My Shares.ini
[Domain Users] Drive1="P:, \\SERVER\Management$, Management" Drive2="Q:, \\SERVER\TechnicalData$, Quality"
Thats why i need the exact group. The script must do a look a see that i am in "Domain Users" an give me the shares.
Hope this helps to explain my problem.
PS. The Code is done by someone else of a kix forum.I am just using it.
|