Question: Executing code upon folder/drive access
I would be glad if someone could show me how to make your program in jar format execute when the folder that contains it is accessed or maybe a drive. Thank you.
In case of drive you can use Autorun.inf file.
In the Autorun.inf file you can include the following code:
[autorun] open=yourprogram.exe icon=autorun.ico
Hope this will solve your problem.