2005年4月20日 星期三

在 xpinstall 中複製整個目錄的檔案

在 xpinstall 中複製整個目錄的檔案可以參考下面的範例,或者可以參考 flash 的 plugin 安裝程式‧
jar 的目錄結構
[D] Root
├ [D] Components
│ ├ file1.js
│ └ file2.js
└ install.js
// install.js 的片段程式
var componentsFolder = getFolder("Components");
setPackageFolder(componentsFolder);
err = addDirectory("Telnet Protocol",
"1.0.0.1", // 版本號 (可忽略)
"Components", // 在 jar 中的目錄名稱
componentsFolder, // 複製到哪個目錄中
"", //
true); // Force Flag

上述的程式會將 file1.js 與 file2.js 複製到 Components 的目錄中‧

1 則留言:

匿名 提到...

At 38 stories, it may be} model new} icon in Asia's increasingly crowded playing resort 토토사이트 area. Making this $1.four billion bet repay requires that developer Lotte Tour draw the proper cards in local politics, worldwide affairs and the tricky foreigners-only casino enterprise. Players have tried out video poker with a standard display screen setting displaying three reels that players spin after the sport begins. When the reels cease spinning and present a static picture where elements are joined in rows, a win is available in}.