I have a simple VBScript that takes one parameter when called and then prompts the user to enter a second parameter to then call an exe. I need users to be able to run this exe on one server, so it's my understanding an option is to use ASP. How would I call this vbs in an ASP script? I thought as long as I enclose in <% %>, that would designate as a vbs script. Below is the code I want to use. Any help or suggestions would be appreciated.
Thanks...
Dim ArgObj
Set ArgObj = WScript.Arguments
Set WshShell = WScript.CreateObject("WScript.Shell")
nimid=ArgObj(0)
strRemTicket = InputBox ("Enter the Remedy Ticket:")
strcmd1 = "pu.exe -u user -p passwd nas assign_alarms TAC"
strCmd3 = " " & nimid
strCmd2 = " "& strRemTicket
strCmd = strCmd1 & strCmd2 & strCmd3
WshShell.run strCmd
Thanks...
Dim ArgObj
Set ArgObj = WScript.Arguments
Set WshShell = WScript.CreateObject("WScript.Shell")
nimid=ArgObj(0)
strRemTicket = InputBox ("Enter the Remedy Ticket:")
strcmd1 = "pu.exe -u user -p passwd nas assign_alarms TAC"
strCmd3 = " " & nimid
strCmd2 = " "& strRemTicket
strCmd = strCmd1 & strCmd2 & strCmd3
WshShell.run strCmd