| |

VerySource

 Forgot password?
 Register
Search
View: 979|Reply: 6

How to open another program at the touch of a button, such as E:\QQ.exe

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-18 22:30:02
| Show all posts |Read mode
Private Sub Button1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

What is the code in the middle? I remember it looks like a shell or something
Reply

Use magic Report

0

Threads

11

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-22 19:00:01
| Show all posts
shell + file address
Reply

Use magic Report

0

Threads

11

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-23 00:15:01
| Show all posts
Public Function Shell( _
   ByVal Pathname As String, _
   Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
   Optional ByVal Wait As Boolean = False, _
   Optional ByVal Timeout As Integer = -1 _
) As Integer
Reply

Use magic Report

0

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-23 21:00:01
| Show all posts
System.Diagnostics.Process.Start("C:\Program Files\Internet Explorer\IExplore.exe")
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-6-24 21:45:02
| Show all posts
Shell("E:\QQ.exe ", AppWinStyle.NormalFocus)
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-25 13:00:02
| Show all posts
System.Diagnostics.Process.Start("path")
Reply

Use magic Report

0

Threads

10

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-6-26 13:30:01
| Show all posts
Both shell and process can be achieved!
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