HI,

Looking for a solution to add my jar file to windows startup folder programatically by itself.
Batch scripting may do the task but i dont want to use the batch.
The jar itself should be added to windows startup folder programatically when it is clicked for the first time.

Recommended Answers

All 3 Replies

How about ProcessBuilder to execute the necessary commands directly from your Java program?

if you consider an os like windows7 i think you just have to write code for the program to check if it exists in the startup folder . if it doesnt then make it copy itself to the startup folder!!!!!

or just write code to create the batch file automaically and still execute the pogram from the batch file!!!!!!!

or else follow JamesCherills mtd

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.