Double Commander

Official forum
It is currently Mon May 20, 2013 12:27 am

All times are UTC + 3 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sat Apr 25, 2009 11:06 am 
Offline

Joined: Sat Apr 25, 2009 10:46 am
Posts: 2
Hi guys.

I noticed a user had asked how to use the snapshot builds without the console, and now that I'm using a snapshot myself I am finding it a bit bothersome. However, it's a very handy this for a developer to have a console to dump info. to when debugging, so as a compromise, I have here a solution.

A program that NtWind used to make called hstart can run an application and hide its console window. Unfortunately, NtWind has been down for some time, so it's available here instead. The executable contains a valid digital signature, so you know it hasn't been messed with.

Download the zip file, and extract hstart.exe to your Double Commander installation folder. When you want to run doublecmd.exe, just run 'hstart.exe /NOCONSOLE doublecmd.exe' instead. This will run Double Commander with no console window.

Hope this helps :beer:

P.S. Thanks Double Commander crew for such an awesome file browser :Bravo:


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 7:13 pm 
Offline
Developer
User avatar

Joined: Wed Apr 01, 2009 9:17 pm
Posts: 761
Location: Poland
Hey,

Thanks for the tip. I was also looking for such possibility previously, but I only found a few apps that modified the Subsystem field of the PE file and that wasn't working. This program seems to do this a different way.

Also, I checked and NtWind site is up and running and they have a more recent version of HiddenStart there (link).


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 3:13 am 
Offline

Joined: Sat Apr 25, 2009 10:46 am
Posts: 2
Oh thanks Cobines. NtWind was down yesterday and the Wayback Machine has no pages from this year for it so I surmised it had been down since then.

Ehtyar.

P.S. To forum admins, external links probably shouldn't open in the mainFrame frame.


Top
 Profile  
 
PostPosted: Sat May 23, 2009 10:54 pm 
Offline

Joined: Sun Apr 05, 2009 3:36 pm
Posts: 6
Thank you very much!
Works great!


Top
 Profile  
 
PostPosted: Sat Apr 17, 2010 1:29 am 
Offline

Joined: Sat Apr 17, 2010 12:05 am
Posts: 2
Yes great, it's working.

Thanks a lot !


Top
 Profile  
 
PostPosted: Sat Jul 24, 2010 5:18 am 
Offline

Joined: Thu Nov 26, 2009 6:05 am
Posts: 56
Location: China
In fact, you can make a jscript file to do the same thing.
file: start_dc.js
Code:
//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 + "\\DoubleCommander\\doublecmd.exe\"", 0, false);


Just 4 lines of working code, copy and paste them to a .js file, double click it.

_________________
All I want is to give birth to a child with ZengYiKe...


Top
 Profile  
 
PostPosted: Thu Aug 12, 2010 11:31 am 
Offline

Joined: Wed Jul 14, 2010 3:48 pm
Posts: 8
js works very good just in Windows7 I had to make modyfication of last line:
Code:
shell.Run("\"C:\\Program Files\\Double Commander\\doublecmd.exe\"", 0, false);   

:good:


Top
 Profile  
 
PostPosted: Thu Aug 19, 2010 4:57 pm 
Offline

Joined: Thu Nov 26, 2009 6:05 am
Posts: 56
Location: China
riventel wrote:
js works very good just in Windows7 I had to make modyfication of last line:
Code:
shell.Run("\"C:\\Program Files\\Double Commander\\doublecmd.exe\"", 0, false);   

:good:

Later I find out that there is no "runas privilledged user" menu option for jscript, so you need some codes other than this to run dc as privilledged user:
var app = WScript.CreateObject("Shell.Application");
app.ShellExecute(script_path + "\\DoubleCommander\\doublecmd.exe", "", "", "runas", 0);

_________________
All I want is to give birth to a child with ZengYiKe...


Top
 Profile  
 
PostPosted: Thu Apr 28, 2011 8:19 am 
Offline
Site Admin
User avatar

Joined: Sat Mar 15, 2008 1:08 pm
Posts: 2001
I added command line parameter "--no-console" that hides console window at start.

_________________
Windows XP SP3
Linux Mint Xfce Edition


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 3 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Get Double Commander at SourceForge.net. Fast, secure and Free Open Source software downloads