| |

VerySource

 Forgot password?
 Register
Search
View: 644|Reply: 3

Questions about opening a file or application in the onclick () event?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-30 17:40:01
| Show all posts |Read mode
Process p = new Process ();
p.StartInfo.FileName = "notepad.exe";
p.Start ();
Why can't I open notepad? Please master!
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-21 15:15:02
| Show all posts
This is a program running in the background of the server without an interface. There is only one process.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Unknown

 Author| Post time: 2020-3-23 18:30:01
| Show all posts
So how can I hit a .doc file with word directly in the click event of the web page instead of IE
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 United States

Post time: 2020-3-23 22:00:01
| Show all posts
var wsh = new ActiveXObject ('WScript.Shell');
wsh.Run ("C:\\WINDOWS\\system32\\notepad.exe");
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list