Przeglądaj źródła

ADD: Patch [3104476] "hiding DC-debug-window another way"

Alexander Koblov 14 lat temu
rodzic
commit
38cbe823a2
1 zmienionych plików z 22 dodań i 0 usunięć
  1. 22 0
      doublecmd-noconsole.js

+ 22 - 0
doublecmd-noconsole.js

@@ -0,0 +1,22 @@
+// Use this script to run Double Commander without console debug window
+
+// run as logged-in user:
+
+// First get the path of this script
+var script_path = WScript.ScriptFullName;
+script_path = script_path.substring(0, script_path.lastIndexOf('\\'));
+var shell = WScript.CreateObject("WScript.Shell");
+// Then launch dc(DoubleCommander directory is supposed to be placed besides this script)
+shell.run("\"" + script_path + "\\doublecmd.exe\"", 0, false);
+
+/*
+
+// or this one asks for the desired user:
+
+var script_path = WScript.ScriptFullName;
+script_path = script_path.substring(0, script_path.lastIndexOf('\\'));
+var shell = WScript.CreateObject("WScript.Shell");
+var app = WScript.CreateObject("Shell.Application");
+app.ShellExecute(script_path + "\\doublecmd.exe", "", "", "runas", 0);
+
+*/