I am developing a Java program that needs to run when user turns on his PC, I was suggested to :
create a .bat file @javaw -jar path/to/jar/Name.jar arguments drop this in the Windows startup directory
My question is :
- Can my Java program save the above file into the Windows startup directory ?
- Where is this Windows startup directory on the C: or D: drive ?
- How can my Java app find out the location ?
- Is it the same on all versions of Windows ?