Search code examples
javawindowshortcut

create windows folder shortcut using java? Note: not using symboliclink


I have to create a window folder shortcut using java. For example,

C:\Foldername

I have to create a shortcut using this path

C:\FolderName-shortcut 

Like we create shortcuts in desktop

I don't want to create a desktop shortcut. I have to create a folder shortcut within the folder


Solution

  • 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.