473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Close and restart program

How to shutdown a program and restart it again whitin the program?

Rinaldo
Dec 2 '07 #1
2 7181
Hi,

I found this on Google:
http://tinyurl.com/34a7xt
Cheers,
- Vincent

Rinaldo wrote:
How to shutdown a program and restart it again whitin the program?

Rinaldo
Dec 2 '07 #2
Hi,

Simply start a new instance of the program and use a command line arg with
the ID of the old process, at startup if a process ID was passed as a
parameter just do Process.Kill the old process.

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Rinaldo" <zw*************@hotmail.com.nospamwrote in message
news:B0**********************************@microsof t.com...
How to shutdown a program and restart it again whitin the program?

Rinaldo

Dec 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: anr | last post by:
Hi everyone, I have made a solution where a user is added to the system and a folder is set up for him. In order to make the folder webDAV accessible for him I have to add some lines to the...
2
by: Hal Vaughan | last post by:
My program can, when directed, check a floppy for updates, verify the MD5 sums from another source, then copy the new Java classes to its own directory tree. Once it does this, I'd like to restart...
1
by: mdb | last post by:
Anyone have a suggestion for how to restart my appliacation when I exit? I'm not talking about a looping batch file - I need my program to have the ability to restart or not restart. Also, I...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
2
by: Brian Worth | last post by:
I have just upgraded from VB 4.0 to VB .NET 2002. One program under VB 4.0 was able to shut down or restart the (windows XP) machine using a series of API calls. (Getlasterror, GetCurrentProcess,...
1
by: AspProgrammer | last post by:
Hello I'm writing a web application where i upload a file. then i open the file use textstream. At the end of my application i close it by using TextStream.close. But when i try to delete the...
1
by: pamelafluente | last post by:
Hi Guys, I have a small application which uses a NotifyIcon. The user can set the program so that when he clicks on the form-cancel button "X", the program will instead be minimized in the icon...
4
by: pamelafluente | last post by:
Hi Guys, I have a small application which uses a NotifyIcon. The user can set a flag (PreventClosing ) so that when he clicks on the form-cancel button "X", the program will instead be...
3
by: Lee | last post by:
Hi, I'm trying to programmatically restart my application after downloading updates, but I can't get the Application.Restart command to work correctly. It shuts down my program fine, but then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.