|
greetings --
(this is long and maybe complicated)
currently i have a kix script that calls a vbscript, to wit:
if ingroup("GroupA") run ("cscript.exe \\server\share$\groupA.vbs") endif
and groupA.vbs looks like:
'map drives On Error Resume Next Dim WshNetwork Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "g:", "\\server\share$\groupA"
set WshShell = WScript.CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") set oShellLink = WshShell.CreateShortcut(strDesktop & "\Group Share.lnk") oShellLink.TargetPath = WScript.ScriptFullName oShellLink.WindowStyle = 1 oShellLink.TargetPath = "G:\" oShellLink.WorkingDirectory = "G:\" oShellLink.Save
basically this maps drive G:\ to the groupA share and drops a shortcut on the desktop to drive G:\
this works fine but what i would like to do is have 1 vbscript that uses the groupname variable to map the drive and shortcut (so i don't have to create a seperate vbscript for each domain group).
so, can i pass the groupname variable from the kix script to the vbscript? or more ideally - do the entire thing in kix?
thanks for the time and i hope this makes sense!
JoS
|