0

I'd like to run dosbox with params from batch file like so

@"C:\Program Files (x86)\DOSBox-0.74-3\DOSBox.exe -noconsole -exit"

but get an error:

'"C:\Program Files (x86)\DOSBox-0.74-3\DOSBox.exe -noconsole -exit"' is not recognized as an internal or external command,
operable program or batch file.

How to run dosbox with params?

3
  • So run dosbox with params as @"C:\Program Files (x86)\DOSBox-0.74-3\DOSBox.exe" -noconsole -exit
    – JosefZ
    Apr 5, 2020 at 19:03
  • Sorry but i've tried this already and it doesn't work - dosbox runs without taking the prams into account - pops-up the window...
    – Ringger81
    Apr 5, 2020 at 19:45
  • 1
    This is from my shortcut "C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -userconf -noconsole -fullscreen. This is what help (its in the DOSBox folder) says about -exit *-exit* DOSBox will close itself when the DOS application "name" ends. You are missing name.
    – Mark
    Apr 5, 2020 at 20:47

1 Answer 1

1

Run it like this
@"C:\Program Files (x86)\DOSBox-0.74-3\DOSBox.exe" -noconsole -exit

The double quotes have to bracket the excuted file and its path, but must not include the parameters.

3
  • Sorry but i've tried this already and it doesn't work - dosbox runs without taking the prams into account - pops-up the window...
    – Ringger81
    Apr 5, 2020 at 19:45
  • Please change to the directory C:\Program Files (x86)\DOSBox-0.74-3 and test the command from there: DOSBox.exe -noconsole -exit Do you see any difference? Does it now take the parameter into account? If not, the parameters don't do what you like them to do, that is, in that case, check the parameters. I'm not familiar with DosBox, but according to the usage you should provide a 'name' paramter?
    – BogisW
    Apr 5, 2020 at 20:35
  • The -noconsole options refers to the startup console normally displayed in addition to the main DOSBox window. Apr 24, 2020 at 2:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .