mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Patch [3104476] "hiding DC-debug-window another way"
This commit is contained in:
parent
b92052e0e9
commit
38cbe823a2
1 changed files with 22 additions and 0 deletions
22
doublecmd-noconsole.js
Normal file
22
doublecmd-noconsole.js
Normal file
|
|
@ -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);
|
||||
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue