Execute a batch script from Firefox
문제
I have written an intranet application from which you can directly connect to a virtual machine by clicking on a RDP-button. The click calls a .bat file, which opens the connection.
With IE, this is no problem, as you can choose to directly execute the batch file. But with Firefox, I can only download the script, and have to start it manually afterwards. Is there a way to trust the intranet domain (about:config?) so Firefox allows it to execute scripts directly? Or is there an even better (easier) way to start an RDP connection from Firefox?
해결책
You can easily register a custom protocol handler such as "myrdp://somedata
" to run the app that opens the VM (This would probably work with a .bat, it works with a WSH script, better a small exe)
IE/FF support this functionality and allow you to then simply <a href="myrdp://somedata" ..>
다른 팁
You could also try to set up your firefox to automatically open the .rdp files with the default rdp client. This way the files will be downloaded in a temp dir and immediately started up.
You can do this in Firefox's preferences. Hope this helps )