I need to run a program from the local user’s file system by clicking an html link.
When i use this
<a href="C:\Windows\System32\NETSTAT.EXE">CLICK</a>
It works fine. But When i try to pass a parameter to the exe file it fails.
<a href="C:\Windows\System32\NETSTAT.EXE -a">CLICK</a>
Anyone has an idea how is it possible to pass the parameter?
Thanks
UPDATE
The use of this is the following: An online system sends emails to users if a new record is available in the system. Therefore the users will click a link from their email client that will open their local exe program with the desired parameter, to show the new record.
I don’t want to send emails with bat files since it is not allowed by my network admin.
I see only one solution, use .BAT file, where will be “netstat.exe -a”, named for example netstat-a.bat.
It’s quite impertect solution, but can works 🙂
You can also try this code, but it depend of browser and user rights: