Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#319 [Windows] With --version, window closes immediately

0.72
open
nobody
None
3
2012-09-07
2008-12-10
The MAZZTer
No

When I run dosbox.exe --version in Windows XP in order to have it dump version information (I forgot what the current version was and wanted to make sure this guy who had problems with a game was running the same version as me), it launches a new console window. This window immediately closes after printing said information, so I do not have time to read it. It is also impossible to pipe the output to a file.

Although a separate console window may be desired for normal operations, when run with --version it should use the current console window if it exists. I don't know if this is possible for just one switch... it might be a compile-time flag in the EXE header. If it's not possible... using the current console window all the time would be acceptable, at least to me.

This would only affect launching from an existing console (usually using cmd.exe) and not through "normal" means like through a shortcut or Explorer or the run dialog. If desired, users could launch it in a separate console window by using start.exe.

Discussion

  • Peter Veenstra
    Peter Veenstra
    2009-01-13

    It is tricky.
    Problem is that sdl closes the console on startup. So dosbox actually reopens it.

     
  • c2woody
    c2woody
    2009-02-01

    Don't see a bug here, the --version is to be used by frontends,
    and users who really need the version number can check the
    console window of a regular startup or use the -noconsole switch
    that forwards the output into standard files.