I have a vbs script that prompts for a user name and server address then creates a Gruopwise mail icon on the desktop. I have started a .hta with severs addresses and a dropdown menu. I would like to merge the two so the user will have a dropdown rather then entering the server address. I do not know enough about HTA to merge my script. If there is any advise, I would appreciate it
----------------------
<html>
<head>
<title>My Second HTA</title>
<HTA:APPLICATION
ID="Groupwise Icon"
APPLICATIONNAME="GWIcon"
SCROLL="yes"
SINGLEINSTANCE="yes"
WINDOWSTATE="normal">
</head>
<SCRIPT Language="VBScript">
Sub RunScript
Dim r
Dim oshell, fso, Uname, Ipa
Dim WScript
Set oshell = WScript.CreateObject("WScript.Shell")
Dim shcut, d, dpath, wpath
Dim Swtc
r = MsgBox("Would you like a shortcut to GroupWise?", 36, "Create Shortcut?")
If r = 7 Then
WScript.quit
Else
Set fso = CreateObject("Scripting.FileSystemObject")
dpath = oshell.SpecialFolders("Desktop")
wpath = "C:\Novell\GroupWise"
Uname = InputBox("Input a username (Last_First):", "Staff members user name")
Ipa = DropDown1.value
Set shcut = oshell.CreateShortcut(dpath & "\" & Uname & " GroupWise.lnk")
shcut.TargetPath = oshell.ExpandEnvironmentStrings(wpath + "\GrpWise.exe")
shcut.arguments = (" /@u-" & Uname & " /Ipa-" & Ipa)
shcut.WorkingDirectory = oshell.ExpandEnvironmentStrings(wpath)
shcut.WindowStyle = 4
shcut.IconLocation = oshell.ExpandEnvironmentStrings(wpath & "\GrpWise.exe, 0")
shcut.Save
End If
End Sub
</SCRIPT>
<body>
<select
<select size="1" name="DropDown1" onChange="RunScript">
<option value="10.0.0.4">
Auburn
</option>
<option value="10.0.1.4">
Baker
</option>
</select>
</body>
</html>
----------------------
<html>
<head>
<title>My Second HTA</title>
<HTA:APPLICATION
ID="Groupwise Icon"
APPLICATIONNAME="GWIcon"
SCROLL="yes"
SINGLEINSTANCE="yes"
WINDOWSTATE="normal">
</head>
<SCRIPT Language="VBScript">
Sub RunScript
Dim r
Dim oshell, fso, Uname, Ipa
Dim WScript
Set oshell = WScript.CreateObject("WScript.Shell")
Dim shcut, d, dpath, wpath
Dim Swtc
r = MsgBox("Would you like a shortcut to GroupWise?", 36, "Create Shortcut?")
If r = 7 Then
WScript.quit
Else
Set fso = CreateObject("Scripting.FileSystemObject")
dpath = oshell.SpecialFolders("Desktop")
wpath = "C:\Novell\GroupWise"
Uname = InputBox("Input a username (Last_First):", "Staff members user name")
Ipa = DropDown1.value
Set shcut = oshell.CreateShortcut(dpath & "\" & Uname & " GroupWise.lnk")
shcut.TargetPath = oshell.ExpandEnvironmentStrings(wpath + "\GrpWise.exe")
shcut.arguments = (" /@u-" & Uname & " /Ipa-" & Ipa)
shcut.WorkingDirectory = oshell.ExpandEnvironmentStrings(wpath)
shcut.WindowStyle = 4
shcut.IconLocation = oshell.ExpandEnvironmentStrings(wpath & "\GrpWise.exe, 0")
shcut.Save
End If
End Sub
</SCRIPT>
<body>
<select
<select size="1" name="DropDown1" onChange="RunScript">
<option value="10.0.0.4">
Auburn
</option>
<option value="10.0.1.4">
Baker
</option>
</select>
</body>
</html>