1

There's a field for Command Arguments in the project properties.

I've tried:

  • /min
  • /minimize
  • /minimized
  • start /min

Any ideas?

Enigma
  • 1,247
  • 3
  • 20
  • 51
  • Not sure I can follow, but do you want to have the debugger launch a command-line application in a minimized console window? – IInspectable Jan 18 '17 at 15:24
  • 1
    Yup - exactly - ideally using a Command Argument. – Enigma Jan 18 '17 at 15:44
  • The *Command Arguments* are passed to the debuggee, while the ones you tried apply to the command interpreter. However, as far as I know, Visual Studio's debugger doesn't launch a command interpreter. – IInspectable Jan 18 '17 at 15:52
  • So you're saying it's up to the application being debugged to handle the Command Argument and minimize the window? Is there not a uniform Windows `minimize this` command argument? – Enigma Jan 19 '17 at 15:57
  • No. The command line is passed to the [CreateProcess](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425.aspx) API call. If you'd want your application to start minimized, you'd have to pass the appropriate value for *wShow* in the [STARTUPINFO](https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331.aspx) structure. But that isn't hooked up to the command line. This field is used when creating a shortcut (.lnk), though. – IInspectable Jan 19 '17 at 16:23

0 Answers0