| |

VerySource

 Forgot password?
 Register
Search
View: 738|Reply: 4

How to restart the application?

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-13 17:20:01
| Show all posts |Read mode
Thank you!
Reply

Use magic Report

0

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-17 11:00:02
| Show all posts
System.Diagnostics.Process.Start ();
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-18 14:09:01
| Show all posts
Restart the program? I won't hesitate to see if there is an expert to guide.
Reply

Use magic Report

0

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-19 15:45:02
| Show all posts
System.Diagnostics.Process.Start ();
Is not it?
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-20 09:27:01
| Show all posts
Application.Exit ();
System.Diagnostics.Process.Start (Application.StartupPath + "\\aa.exe");

This can be restarted, but the problem is that if the user changes the application name, it cannot be restarted. It seems that the thread method should be used. How to use it has not been studied.
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