js- shortcutPath="D:\\0.lnk";
- TargetPath="D:\\00.exe";
-
- function withObject(obj,callback){callback(obj);}
- withObject(new ActiveXObject("WScript.Shell").CreateShortcut(shortcutPath),function(shortcut){
- shortcut.TargetPath=TargetPath;
- shortcut.Save();
- });
复制代码
|