搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to Run an Application from Firefox?

more options

Hi I want to run an application from my Firefox browser, for example i want to run Notepad.exe from Firefox. I have written the following program and it is successfully opening the Notepad from Internet Explorer, but when i try to open the same page from Firefox browser, nothing happens.Firefox fails to open it.Is there any way of opening Applications in Firefox? Kindly tell me how to open an Application from Firefox Browser.

   <script type="text/javascript" language="javascript">
       function RunFile() {
     
       WshShell.Run("C:\Windows\System32\KinectClothing2.exe", 1, false);
  
       }
   </script>
Hi I want to run an application from my Firefox browser, for example i want to run Notepad.exe from Firefox. I have written the following program and it is successfully opening the Notepad from Internet Explorer, but when i try to open the same page from Firefox browser, nothing happens.Firefox fails to open it.Is there any way of opening Applications in Firefox? Kindly tell me how to open an Application from Firefox Browser. <script type="text/javascript" language="javascript"> function RunFile() { WshShell.Run("C:\Windows\System32\KinectClothing2.exe", 1, false); } </script>

被選擇的解決方法

Perhaps the "External Application Buttons 2" extension at https://addons.mozilla.org/en-US/firefox/addon/external-application-button/ which is based on the original extension started by Torisugari over ten years ago.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

For our users' safety, we do not allow websites to run code that opens an application without the users' consent.


Users can adjust settings to choose which application opens when they attempt to open a file.
Ex. A .pdf file would open with Adobe Reader.

more options

Im not a JS developer, but that would be kinda risky to open files off a computer using a script.

more options
more options

選擇的解決方法

Perhaps the "External Application Buttons 2" extension at https://addons.mozilla.org/en-US/firefox/addon/external-application-button/ which is based on the original extension started by Torisugari over ten years ago.

more options

We are glad to see that your problem has been solved.
Thank you for using the Mozilla support forums.