473,385 Members | 2,013 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,385 software developers and data experts.

Close a program and then start it up again - on start up!!!

153 100+
Hi all

I have a problem with my set up on pc and am thinking java can help me, also thinking using java would help me with my knowledge of java.

The reasons i need this are odd so i want go in to them.

I want a java program to open when windows starts then i want the program to close an exe and then open it again, and being greedy i would then like the java program to close.

I believe this is possible, is it? and any pointers where to start??

Regards

Brendan
Oct 27 '08 #1
2 1415
JosAH
11,448 Expert 8TB
Have a look at the Runtime.exec() family of methods; they can solve at least part
of your problem.

kind regards,

Jos
Oct 27 '08 #2
brendanmcdonagh
153 100+
hi jos

Done that and it works a treat, now i am being greedy but worth a shot. Can i have my code to start the program i started as a service??

Regards

Brendan
Oct 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tian | last post by:
I have made a program in wxpython, but how could i exit the program? I am using wxFrame for my window, what is the function to close the program? Thanks!!
4
by: -DRB- | last post by:
Hi, I'm probably going to get harassed just for mentioning the unmentionable, but since I have if anyone could answer this question that would be much appreciated. As per the rather long...
2
by: Palm Kevin | last post by:
Hello, I have a little problem when I try to use a class of a DLL. Example : I have a DLL with the object MTSync with a function Sync() I try in another program to use this dll like this :...
1
by: Alan Ho | last post by:
Dear All, i used some close program method, e.g. this.hide(), this.dispose() or this.close() , for above 3 method I dont know why i can't open the program in PPC again. and i dont want to use...
1
by: Mike Kober | last post by:
I'm having difficulty getting this to work. Any help would be appreciated. What I'm trying to do is to open Explorer onto the Windows/fonts directory and then close it. I've added a font...
0
by: Steve Ingram | last post by:
Found out what I'd done, and it wasn't py2exe causug the problem. I wasn't closing the main dialog properly, I was calling Close() instead of Destroy(), so the dialog stayed in memory, basically it...
5
by: Ryan Liu | last post by:
Hi, Both way works, I'd just ask some experts which way is better? My application creates a log file daily. Now each time when I write a log, I will open the file and append to the end....
2
by: Ryan Liu | last post by:
How a thread is reused in thread pool? Change the context and call theThread.Run() again, and it executes same threadStart? Thanks! Ryan
0
by: Shalako | last post by:
Today was this second time this happened. It occured at 12:00AM on 7/14 and today 7/18 according to the application event viewer. The event viewer error says: The Apache service named reported...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.