0

I have to create a window folder shortcut using java. For example, C:\Foldername I have to create shortcut using this path C:\FolderName-shortcut Like we create shortcut in desktop

I dont want to create desktop shortcut. I have to create folder shortcut within folder

Vimal
  • 67
  • 1
  • 12
  • You need to use a native interface/library, java itself isn't capable of doing that. – BackSlash Feb 09 '17 at 11:40
  • @BackSlash please provde me library for JShellLink and i dont want to create desktop shortcut.Create Folder shortcut as i said in example C:\foldername – Vimal Feb 09 '17 at 11:46
  • Read question and answer, they have all the links. – BackSlash Feb 09 '17 at 11:49
  • ok @BackSlash got it!! – Vimal Feb 09 '17 at 11:51
  • @BackSlash i have use this code and it will create desktop shortcut but i want a folder shortcut within that folder. I have tried all the way by passing path of different like c:\foldername but neither it give me error nor it will create folder on that path – Vimal Feb 09 '17 at 12:22

1 Answers1

0

Thanks for help @BackSlash after passing path directly to setFolder it has resolve my problem.before i have passing path to setdirectory method inside setfolder so it will not create the path.

Vimal
  • 67
  • 1
  • 12