Click to See Complete Forum and Search --> : ASP: how to invoke another program in my ASP system?
wayne.kw
07-27-2005, 12:47 AM
hi! i need to run another program in my ASP system...
let say, i need to run winzip program when i click a button in my ASP form....any1 know how to do that?
i need the coding for it...
i tried to ask my friend, she said need to use active X, is it necessary? n how to apply it?
pls help me...pls...!
n thank you!
schizo
07-27-2005, 04:00 PM
Long story short, there is no way to do this cross-browser... especially if SP2 is involved. I know I sure wouldn't want a website launching executables on my computer.
lmf232s
07-27-2005, 04:22 PM
not sure if this will do what you want but it might work.
IN this example i open notepad.exe from the system32 folder
Now i use this code on an intranet in my company where i can set settings speciffically for the intranet and not the internet. You may have to go into your Tools/Internetoptions and allow active x not marked as safe to run. If its not this one it might be one of the others. Not sure, it might just work right out of the box.
<script language=vbscript>
Sub Shell(sExecutable)
on error resume next
Dim o
Set o = CreateObject("WScript.Shell")
o.Exec sExecutable
If Err.number <> 0 then
msgbox Err.number
msgbox err.Description
end if
End Sub
</script>
<body onload=Shell("%SystemRoot%\system32\notepad.exe")>
</body>
wayne.kw
07-29-2005, 11:30 PM
i am searching for this way....thanks...!