Multi Commander Support Forum

Multi Commander => Feature Requests and Suggestions => Topic started by: keygen on May 18, 2012, 19:02:57

Title: Keep DOS box open after using command line
Post by: keygen on May 18, 2012, 19:02:57
I apologize if this is perhaps already possible, anyway:

When executing something like a robocopy command the DOS window closes immediately after finishing. I'd prefer if it stayed open to see the report.
Title: Re: Keep DOS box open after using command line
Post by: Mathias (Author) on May 18, 2012, 21:20:44
How do you run it ? from the command line in MC or by dbl clicking it ? or by script ?

Hmm don't know if that is possible. Windows is handled all of the launching of external programs. Might be possible if run from script, because then we know that it is a console program and run it directly via cmd.exe






Title: Re: Keep DOS box open after using command line
Post by: keygen on May 18, 2012, 21:46:18
I run it from the MC command line.
For example, FreeCommander has the option to enable/disable this. (If I mention it all the time, it's just because I've been using it the most in the past. :) )

But now I realized that I can also make it work in MC if I simply write cmd.exe /k before the main command, like cmd.exe /k robocopy f: d: file.txt. I suspect this is also what FC might be doing "behind the scenes".
So, after all with this workaround, I don't really need this feature that much anymore. But it wouldn't hurt either.