mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Add files via upload
This commit is contained in:
parent
029a4f785b
commit
05917cbb38
|
@ -116,7 +116,7 @@ var ChromeObject = function() {
|
|||
var cmd = [
|
||||
"cscript",
|
||||
"app.js",
|
||||
"shoutcut",
|
||||
"shoutcut.legacy",
|
||||
"chrome",
|
||||
this.installedDir,
|
||||
];
|
||||
|
@ -141,7 +141,7 @@ var ChromeObject = function() {
|
|||
cmd.push("--user-data-dir=\"" + this.userDataDir + "\"");
|
||||
cmd.push("\"" + url + "\"");
|
||||
|
||||
SHELL.createDesktopIcon("Chrome Prototype (" + this.installedDir + ")", cmd.join(' '), SYS.getCurrentScriptDirectory());
|
||||
SHELL.createShoutcut("Chrome Prototype (" + this.installedDir + ")", cmd.join(' '), SYS.getCurrentScriptDirectory());
|
||||
};
|
||||
|
||||
this.setInPrivate = function(flag) {
|
||||
|
|
|
@ -119,9 +119,9 @@ var ShellObject = function() {
|
|||
return oShell;
|
||||
};
|
||||
|
||||
this.createDesktopIcon = function(shoutcutname, cmd, workingDirectory) {
|
||||
this.createShoutcut = function(shoutcutName, cmd, workingDirectory) {
|
||||
var desktopPath = this.interface.SpecialFolders("Desktop");
|
||||
var path = desktopPath + "\\" + shoutcutname + ".lnk";
|
||||
var path = desktopPath + "\\" + shoutcutName + ".lnk";
|
||||
|
||||
if (!FILE.fileExists(path)) {
|
||||
var link = this.interface.CreateShortcut(path);
|
||||
|
@ -129,6 +129,7 @@ var ShellObject = function() {
|
|||
//link.Arguments = "/q /c " + this.build(cmd);
|
||||
link.TargetPath = "wscript";
|
||||
link.Arguments = "bgloader.js " + this.build(cmd);
|
||||
//link.Arguments = this.build(cmd);
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = workingDirectory;
|
||||
//link.Hotkey = "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user