views:

73

answers:

1

My Goal


I want to make it so that, on first run, my program will make its icon appear in the Windows 7 Taskbar. I know that the icon files are shortcuts in C:\Users\USERNAME\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and mostly want to know this:

My Questions


  1. How, in Java, can I create a shortcut file (.lnk)
  2. Is it possible to even access that without admin privileges?
A: 

You should not need admin privileges but you do need to do this in context of the user whose taskbar is being changed.

Here's a library which does what you want: http://alumnus.caltech.edu/~jimmc/jshortcut/

atamanroman
This is not a .NET application. It is a Java application.
Supuhstar
I thought you might be able to do the transfer, see the updated answer.
atamanroman