How to make a c program restart itself




















Hello SideWinder, for Restart your application Mitja replied an excellent standard method to Restart your Application! Any fool can know. The point is to understand. Albert Einstein. Thursday, October 13, PM. The name "Application" does not exist in the current context. Care to shed some light on me? Because Application is a class which needs "System.

Forms" namespace, and so it only accessible and used in Windows Forms. Thursday, October 13, AM. CodeBase; System.

Start myApp ; Environment. Exit 0 ;. Just add reference to System. Forms assembly and you're ready to use it. Your taskbar should disappear and reappear again. All your open explorer windows will be closed too!!!. I need this, but to close and re start a program like, lets say as example, phothosop. I manage to close it, but it is not able to find the program to restart This is extremely useful!

A good idea to expand upon this would be to add a "Try again? Replies: 1 Last Post: , AM. By yabud in forum C Programming. Replies: 3 Last Post: , PM. Replies: 14 Last Post: , AM. Replies: 6 Last Post: , PM.

Replies: 16 Last Post: , PM. All times are GMT The time now is AM. Please do not post your greetings in a new answer. You can add comments on proposed solutions, or, even better, you can give them a fair rate and accept them formally. Kindly :. Learn to indent properly your code, it show its structure and it helps reading and understanding. Posted 7-Nov pm Patrice T. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account.

This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.



0コメント

  • 1000 / 1000