aspose file tools*
The moose likes I/O and Streams and the fly likes How do I get startup programmes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How do I get startup programmes " Watch "How do I get startup programmes " New topic
Author

How do I get startup programmes

praneeth jayarathna
Greenhorn

Joined: Jan 12, 2011
Posts: 13
How DO I get Startup programmes
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

Do you mean the programs that start when your operating system starts? That depends on the operating system.

Windows uses several locations:
- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run for applications that start each time for the current user
- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce for applications that only start the next time for the current user
- HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run for applications that start each time for all users
- HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce for applications that only start the next time for all users
- the Startup start menu folder for the current user
- the Startup start menu folder for all users

I didn't specify actual paths for the last two since those locations depend on several things, including the Windows language. The actual value can be found in the registry somewhere.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
praneeth jayarathna
Greenhorn

Joined: Jan 12, 2011
Posts: 13
Ok thank your reply.but I want ,java codes to get run programmes.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

So you'll need to find a Java library for reading the registry. Just use Google, there are many around.
praneeth jayarathna
Greenhorn

Joined: Jan 12, 2011
Posts: 13
thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I get startup programmes