I have long struggled to find the 'front door' so to speak with regard to how I can use the scripting features of DO. I see now that they're even more robust in that you have a built in dialog editor. I can think of MANY uses for that in my environment. However, I a very unfamiliar with how to do any of this.
I wonder if I could trouble you for a simple vbscript that asks a user for a UNC path (the user should type it) and them maps that to h:. The prompt should be one of the dialogs that are created using the built-in dialog editor rather than one of the long standing DO message box dialogs.
So basically this in vbscript form with a custom dialog to collect the user input
net use h: {dlgstringS|Which user share?}
This would, I think, be an enormous help in my effort to get something useful built in DO's scripting environment.
So far, it seems like this one, while far more complicated than the simple example I was seeking, must contain the information I'm looking for, plus much more no doubt.
Function OnClick(ByRef clickData)
Set Dlg = DOpus.Dlg
Dlg.window = clickData.func.sourcetab
Dlg.template = "sharedlg"
if Dlg.Show Then
Set cmd = DOpus.Create.Command
cmd.SetType "msdos"
cmd.SetModifier "leavedoswindowopen"
cmd.RunCommand "net use h: """ & Dlg.Control("path").value & """"
end if
End Function