Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
java code that run when the system is on and it should execute automatically when the system is on?
Posted
Updated 25-May-11 20:11pm
v2
Comments
Sergey Alexandrovich Kryukov 25-May-11 3:16am    
That is beyond good and evil!
--SA
Richard MacCutchan 25-May-11 6:09am    
Same solution is driving your car with the engine removed!

Now, there is a concept: applications that run when you power off your computer!

How do you expect that to work? Magic?

When you shut your PC down, all apps stop running. The processor stops running. The RAM forgets what is had in it. The HDD stops rotating. Nothing happens until you turn your PC back on.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-May-11 3:18am    
Griff, are your serious? Then explain energy conservation law, just in case. OK, you got my 5, but this is just the lack of communication skills in OP (it usually results in even worse programming skills, but you never know for sure :-).
--SA
srikanth nimma 25-May-11 3:31am    
ya thanks but i want code that run automatically runs when ever the system is on........
TorstenH. 25-May-11 4:01am    
this is not even a question - questions usually end with a "?".

But what kind of action are you planing? Do you want to wake up a network connected machine?

You need to tell us what you're searching for.
Sergey Alexandrovich Kryukov 25-May-11 4:23am    
I generally answered, please see.
--SA
Sergey Alexandrovich Kryukov 25-May-11 4:17am    
There are many phases of "system is on".
In first phases, it's useless. Basically, you cannot run application before the user logs in. Where will it show?!

--SA
Do the following:

Download Sysinternals AutoRuns: http://technet.microsoft.com/en-us/sysinternals/bb842062[^].

Unpack and run AutoRuns, look through all sections, find help on each of them.
This is an ultimate source of information where to run your application on each phase of OS start up and log-in.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900