Click here to Skip to main content
15,942,795 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i have a web form that i wanna call a exe from this page i wrote following code for call exe but raise "predefined type system.object is not defined or imported" error

function Button1_onclick() {
           Set WShell = CreateObject("WScript.Shell")  
WShell.Run "c:\fromweb.exe"  
}
Posted
Updated 15-Feb-14 0:15am
v2
Comments
Maarten Kools 15-Feb-14 6:25am    
What do you want to achieve? Run an executable on the client when a user clicks a button?
behrad110 15-Feb-14 6:27am    
yes exactly

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Feb-14 20:21pm    
Right, a 5.
Trying to run anything on client side is bad thing in principle. It won't work on all platforms, and even if it can work on some, it would be even worse, as it will break all the safety to nothing. Who would ever trust such sites?
—SA
Yes, exactly. :)
Thanks Sergey. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900