java建立快捷方式 作者 ice古雨

2021-09-01 04:10:23 字數 587 閱讀 8243

package com.ts.util.ex.project;

import net.jimmc.jshortcut.jshelllink;

/** * 快捷方式工具類

* *

*/public class shortcut

/*** 建立乙個快捷方式

* * @param fileorfolderpath

* 源資料夾路徑

* @param writeshortcutpath

* 目標檔案路徑(快捷方式型)

*/public static void createshortcut(string fileorfolderpath,string writeshortcutpath)

/*** 獲取乙個快捷方式真實位址

* * @param filefolderpath

* 源資料夾路徑

*/public static string getshortcutrealpath(string filefolderpath)

}

建立快捷方式

苦苦搜尋了n天,終於被我找到了,拿出來給大家參考一下 private declare function fcreateshelllink lib vb6stkit.dll byval lpstrfoldername as string,byval lpstrlinkname as string,by...

WinCE建立快捷方式

1.wince的快捷方式是乙個.lnk為字尾的文字檔案,其內容格式為 number of ascii characters after pound sign allocated to command line arguments command line optional parameters 例如...

ubuntu 建立快捷方式

然後在彈出的檔案中輸入 1 desktop entry 2 encoding utf 8 3 name eclipse 4 comment eclipse ide 5 exec usr local eclipse eclipse 6 icon usr local eclipse icon.xpm 7...