Difference between revisions of "Usage"

From DOSBoxWiki
Jump to navigationJump to search
m (Text formatting)
Line 1: Line 1:
dosbox [name] [-exit] [-c command] [-fullscreen] [-conf configfile] [-lang languagefile] [-machine machinetype] [-noconsole]
+
<code>dosbox [name] [-exit] [-c command] [-fullscreen] [-conf configfile] [-lang languagefile] [-machine machinetype] [-noconsole]</code>
  
 
===Usage===
 
===Usage===
*<code>name</code>
+
;<code>name</code>: If <code>name</code> is a directory, DOSBox willl mount the specified directory as the C drive.<br /> If <code>name</code> is an executable, DOSBox will mount the directory of <code>name</code> as the C drive, and start executing <code>name</code>.
  
If <code>name</code> is a directory, DOSBox willl mount the specified directory as the C drive.<br />
 
If <code>name</code> is an executable, DOSBox will mount the directory of <code>name</code> as the C drive, and start executing <code>name</code>.
 
  
 +
;<code>-exit</code>: DOSBox will exit after name has been executed.
  
*<code>-exit</code>
 
DOSBox will exit after name has been executed.
 
  
 +
;<code>-c command</code>: Runs the specified command before running <code>name</code>. Multiple commands can be specified. Each command should start with <code>-c</code> though.
  
*<code>-c command</code>
 
Runs the specified command before running <code>name</code>. Multiple commands can be specified. Each command should start with <code>-c</code> though.
 
  
 +
;<code>-fullscreen</code>: Starts DOSBox in fullscreen mode.
  
*<code>-fullscreen</code>
 
Starts DOSBox in fullscreen mode.
 
  
 +
;<code>-conf configfile</code>: Start DOSBox with the options specified in <code>configfile</code>.
  
*<code>-conf configfile</code>
 
Start DOSBox with the options specified in <code>configfile</code>.
 
  
 +
;<code>-lang languagefile</code>: Start DOSBox using the language string specified in <code>languagefile</code>.
  
*<code>-lang languagefile</code>
 
Start DOSBox using the language string specified in <code>languagefile</code>.
 
  
 +
;<code>-machine machinetype</code>: Setup DOSBox to emulate a specific type of machine. Valid choices are: hercules, cga, tandy, and vga (with vga as the default).
  
*<code>-machine machinetype</code>
 
Setup DOSBox to emulate a specific type of machine. Valid choices are: hercules, cga, tandy, and vga (with vga as the default).
 
  
 
+
;<code>-noconsole</code> (Windows Only): Start DOSBox without showing the console window, output will be redirected to <code>stdout.txt</code> and <code>stderr.txt</code>. This is useful if DOSBox crashes, since the error messages stored in <code>stdout.txt</code> and <code>stderr.txt</code> may help the developers fixing the problem.
*<code>-noconsole</code> (Windows Only)
 
Start DOSBox without showing the console window, output will be redirected to <code>stdout.txt</code> and <code>stderr.txt</code>. This is useful if DOSBox crashes, since the error messages stored in <code>stdout.txt</code> and <code>stderr.txt</code> may help the developers fixing the problem.
 
  
  

Revision as of 04:53, 30 September 2010

dosbox [name] [-exit] [-c command] [-fullscreen] [-conf configfile] [-lang languagefile] [-machine machinetype] [-noconsole]

Usage

name
If name is a directory, DOSBox willl mount the specified directory as the C drive.
If name is an executable, DOSBox will mount the directory of name as the C drive, and start executing name.


-exit
DOSBox will exit after name has been executed.


-c command
Runs the specified command before running name. Multiple commands can be specified. Each command should start with -c though.


-fullscreen
Starts DOSBox in fullscreen mode.


-conf configfile
Start DOSBox with the options specified in configfile.


-lang languagefile
Start DOSBox using the language string specified in languagefile.


-machine machinetype
Setup DOSBox to emulate a specific type of machine. Valid choices are: hercules, cga, tandy, and vga (with vga as the default).


-noconsole (Windows Only)
Start DOSBox without showing the console window, output will be redirected to stdout.txt and stderr.txt. This is useful if DOSBox crashes, since the error messages stored in stdout.txt and stderr.txt may help the developers fixing the problem.


Notes

  • If a name/ command/ configfile/ languagefile contains a space in it, put the whole name/ command/ configfile/ languagefile between quotes ("example").
  • In Windows you can also drag directories/files onto the DOSBox executable.


Example

dosbox c:\atlantis\atlantis.exe -c "MOUNT D C:\SAVES"

This would mount c:\atlantis as c:\ and run atlantis.exe. Before it does that, it would first mount C:\SAVES as the D drive.