A simple way to call desktop exe programs on a web page

A simple way to call desktop exe programs on a web page
This article mainly introduces how to call desktop exe programs on web pages.

The web page code is as follows:

Copy code
The code is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Document</title>
<script type="text/javascript">
function start(strPath){
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
start("F:/adt-bundle-windows-x86-20130729/eclipse/eclipse.exe");
//Note that you must use / in the path, and you cannot use \
</script>
</head>
<body>
</body>
</html>

I hope this helps you all!

<<:  JavaScript recursion detailed

>>:  Implementation of CSS heart-shaped loading animation source code

Recommend

Screen command and usage in Linux

Screen Introduction Screen is a free software dev...

JavaScript to implement the web version of the snake game

This article shares the specific code for JavaScr...

How to connect to virtual machine MySQL using VScode in window environment

1. Virtual Machine Side 1. Find the mysql configu...

How to quickly delete all tables in MySQL without deleting the database

This article uses an example to describe how to q...

How to monitor global variables in WeChat applet

I recently encountered a problem at work. There i...

JavaScript implements AI tic-tac-toe game through the maximum and minimum algorithm

Without further ado, let’s run the screenshot dir...

Several methods to solve the problem of MySQL fuzzy query index failure

When we use the like % wildcard, we often encount...

Several common CSS layouts (summary)

Summary This article will introduce the following...

MySQL date processing function example analysis

This article mainly introduces the example analys...

HTML form application includes the use of check boxes and radio buttons

Including the use of check boxes and radio buttons...

How to use Samba to build a shared file service on a Linux server

Recently, our small team needs to share a shared ...

How to solve the problem of FileZilla_Server:425 Can't open data connection

When installing FileZilla Server on the server, t...

How to monitor Linux server status

We deal with Linux servers every day, especially ...

Example of downloading files with vue+django

Table of contents 1. Overview 2. Django Project 3...

Vue3.0 project construction and usage process

Table of contents 1. Project construction 2: Dire...