| |

VerySource

 Forgot password?
 Register
Search
View: 1133|Reply: 5

Is there a statement to open a non-exe program

[Copy link]

3

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 United States

Post time: 2020-2-9 17:30:01
| Show all posts |Read mode
Is there a statement to open non-EXE programs, such as doc, xls, ppt, chm, etc., you can only open EXE with the run statement
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-3 13:30:01
| Show all posts
Just call winapi
Reply

Use magic Report

0

Threads

21

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 China

Post time: 2020-4-3 18:15:01
| Show all posts
ShellExecuteA
Above pb10 is ShellExecuteW
Reply

Use magic Report

3

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-3 23:15:01
| Show all posts
Can you give an example?
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-4-20 22:45:01
| Show all posts
run ("notepad c:\test.txt")
Reply

Use magic Report

0

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-18 15:45:01
| Show all posts
//Open any file
Function long ShellExecuteA (ulong hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, long nShowCmd) library "shell32.dll"


Go online to find the usage of this function.
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