Difference between revisions of "Usage"

From DOSBoxWiki
Jump to navigationJump to search
m (Protected "Usage" [edit=autoconfirmed:move=autoconfirmed])
m (Text formatting)
Line 1: Line 1:
dosbox [name] [-exit] [-c command] [-fullscreen] [-conf configfile] [-lang languagefile] [-machine machinetype] [-noconsole]<br />
+
dosbox [name] [-exit] [-c command] [-fullscreen] [-conf configfile] [-lang languagefile] [-machine machinetype] [-noconsole]
name <br />
+
 
If name is a directory, DOSBox willl mount the specified directory as the C: drive. <br />
+
===Usage===
If name is an executable DOSBox will mount the directory of name as the C: drive, and start executing name. <br />
+
*<code>name</code>
. <br />
+
 
-exit <br />
+
If <code>name</code> is a directory, DOSBox willl mount the specified directory as the C drive.<br />
DOSBox will exit after name has been executed. <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>.
. <br />
+
 
-c command <br />
+
 
Runs the specified command before running name. Multiple commands can be specified. Each command should start with -c though. <br />
+
*<code>-exit</code>
. <br />
+
DOSBox will exit after name has been executed.
-fullscreen <br />
+
 
Starts DOSBox in fullscreen mode. <br />
+
 
. <br />
+
*<code>-c command</code>
-conf configfile <br />
+
Runs the specified command before running <code>name</code>. Multiple commands can be specified. Each command should start with <code>-c</code> though.
Start DOSBox with the options specified in configfile. <br />
+
 
. <br />
+
 
-lang languagefile <br />
+
*<code>-fullscreen</code>
Start DOSBox using the language string specified in languagefile. <br />
+
Starts DOSBox in fullscreen mode.
. <br />
+
 
-noconsole (Windows Only) <br />
+
 
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. <br />
+
*<code>-conf configfile</code>
. <br />
+
Start DOSBox with the options specified in <code>configfile</code>.
-machine machinetype <br />
+
 
Setup DOSBox to emulate a specific type of machine. Valid choices are: hercules, cga, tandy, and vga (with vga as the default). <br />
+
 
. <br />
+
*<code>-lang languagefile</code>
<br />
+
Start DOSBox using the language string specified in <code>languagefile</code>.
Note: If a name/ command/ configfile/ languagefile contains a space in it, put the whole name/ command/ configfile/ languagefile between quotes ("example").<br />
+
 
<br />
+
 
For example: dosbox c:\atlantis\atlantis.exe -c "MOUNT D C:\SAVES"<br />
+
*<code>-machine machinetype</code>
<br />
+
Setup DOSBox to emulate a specific type of machine. Valid choices are: hercules, cga, tandy, and vga (with vga as the default).
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.<br />
+
 
<br />
+
 
In Windows you can also drag directories/files onto the DOSBox executable.<br />
+
*<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.
 +
 
 +
 
 +
===Notes===
 +
*If a <code>name/ command/ configfile/ languagefile</code> contains a space in it, put the whole <code>name/ command/ configfile/ languagefile</code> 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 <code>c:\atlantis</code> as <code>c:\</code> and run <code>atlantis.exe</code>. Before it does that, it would first mount <code>C:\SAVES</code> as the D drive.

Revision as of 10:27, 24 May 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.