It looks so easy but I am getting nowhere.. here is some code
from the asp.net page
'machinename is the vaue I want to pass..
machinename = TextBox1.Text
Response.Redirect("machrest.asp?machinename=" & machinename)
In the asp page
machinename = Request.QueryString("machinename")
Sub FillInCollections
dim CompName,oWshShell
set oWshShell = CreateObject("WScript.Shell")
path = "\\" & "wchsms13" & "\remote$\remote.exe"
oWshShell.run path & " 2 " & machinename
end Sub
I don't see the parameter in the URL when the ASP page opens..
it should launch a commandline that looks like this
\\wchsms13\remote$\remote.exe 2 machinename
<ar**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
yeah.. the above code would go in the asp.net code behind file.
In the asp page, you could retrieve it like this
myvalue = Request.QueryString("YourVariable")