Author Topic: Keep DOS box open after using command line  (Read 14900 times)

keygen

  • Junior Member
  • **
  • Posts: 12
    • View Profile
Keep DOS box open after using command line
« 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4409
    • View Profile
    • Multi Commander
Re: Keep DOS box open after using command line
« Reply #1 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







keygen

  • Junior Member
  • **
  • Posts: 12
    • View Profile
Re: Keep DOS box open after using command line
« Reply #2 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.