Difference between revisions of "Commands"

From DOSBoxWiki
Jump to navigationJump to search
(pnrQuOGwMKqMtz)
m (→‎MOUNT: changed mount to mount & imgmount)
 
(45 intermediate revisions by 38 users not shown)
Line 1: Line 1:
comment4, http://forums.thedailywtf.com/members/Make-My-Own-Ringtones.aspx Make My Own Ringtones539241, http://forums.thedailywtf.com/members/Machine-Head-Ringtones.aspx Machine Head Ringtones3862, http://forums.thedailywtf.com/members/Listen-To-Ringtones.aspx Listen To Ringtones, 549084, http://forums.thedailywtf.com/members/Matrix-Ringtones.aspx Matrix Ringtones220, http://forums.thedailywtf.com/members/Listen-To-Free-Ringtones.aspx Listen To Free Ringtones, 9817, http://forums.thedailywtf.com/members/Media-Ringtones.aspx Media Ringtones, %PPP, http://forums.thedailywtf.com/members/Lg-Vx3200-Ringtones.aspx Lg Vx3200 Ringtones, 969, http://forums.thedailywtf.com/members/Matisyahu-Ringtones.aspx Matisyahu Ringtones, 929773, http://forums.thedailywtf.com/members/Making-Free-Ringtones.aspx Making Free Ringtones,  =)), http://forums.thedailywtf.com/members/Mac-Dre-Ringtones.aspx Mac Dre Ringtones,  yhwuq, http://forums.thedailywtf.com/members/Loud-Ringtones.aspx Loud Ringtones,  197, http://forums.thedailywtf.com/members/Make-Free-Ringtones.aspx Make Free Ringtones, 8-))), http://forums.thedailywtf.com/members/Make-Own-Ringtones.aspx Make Own Ringtones,  zmte, http://forums.thedailywtf.com/members/Making-Ringtones-For-Iphone.aspx Making Ringtones For Iphone,  ztk, http://forums.thedailywtf.com/members/Making-Ringtones.aspx Making Ringtones,  gyq, http://forums.thedailywtf.com/members/Madonna-Ringtones.aspx Madonna Ringtones,  8-], http://forums.thedailywtf.com/members/Lsu-Ringtones.aspx Lsu Ringtones,  ypbviw, http://forums.thedailywtf.com/members/Mega-Cd-Ringtones-Wallpaper.aspx Mega Cd Ringtones Wallpaper, %OO, http://forums.thedailywtf.com/members/Make-Iphone-Ringtones.aspx Make Iphone Ringtones, vqev, http://forums.thedailywtf.com/members/Ludacris-Ringtones.aspx Ludacris Ringtones, 712,
+
== [[BOOT]] ==
 +
:Will start floppy images or hard disk images independent of the operating system emulation offered by DOSBox. This will allow you to play booter floppies or boot other operating systems inside DOSBox.  
 +
 
 +
== CD (Change Directory) ==
 +
:Allows you to move up and down a directory tree. '''CD''' is simple to use, just type
 +
 
 +
  CD [Directory-Name]
 +
 
 +
:And if the Directory-Name correctly refers to an available directory then you will be moved from your current working directory to the new one. Once completed, any command you issue will operate under the new working directory, and your prompt will be updated to reflect your current working directory.  Multiple folders can be traversed at once (assuming you know the correct names) by typing their names together with the '''\''' separating them for example
 +
 
 +
C:\>'''CD SIERRA\KQ5'''
 +
  C:\SIERRA\KQ5>
 +
 
 +
:There are also 3 special directories that are available inside every directory which help you simply move around. They are
 +
 
 +
.       which refers to the current directory
 +
 
 +
  ..       which refers to the directory directly above the current directory
 +
 
 +
/       which refers to the root directory
 +
 
 +
:Once you have moved into a sub directory, you can move back by typing
 +
 
 +
  C:\SIERRA\KQ5>'''CD ..'''
 +
C:\SIERRA>
 +
 
 +
:And like all other directories you can string them together
 +
 
 +
  C:\SIERRA\KQ5>'''CD ..\..'''
 +
  C:\>
 +
 
 +
:If you ever need to move back to the root directory you can use the '''\''' alias.
 +
 
 +
C:\SIERRA\KQ5>'''CD \'''
 +
  C:\>
 +
 
 +
== CHOICE ==
 +
:Waits for a keypress and sets ERRORLEVEL. Displays the given prompt followed by [Y,N]? for yes or no respones.
 +
:Used for batch scripts in most cases.
 +
 
 +
  CHOICE "Text to ask"
 +
 
 +
== CLS ==
 +
:Clears the screen of all input and returns just the current prompt in the upper left hand corner.
 +
 
 +
== [[CONFIG]] ==
 +
:Change or query various DOSBox settings during runtime.
 +
 
 +
== COPY ==
 +
:Copy a file
 +
:Syntax is COPY <Orignal Filename> <New Filename>
 +
 
 +
COPY Document.txt CopyOfDocument.TXT
 +
 
 +
== DEL ==
 +
:Remove one or more files.
 +
 
 +
== DIR ==
 +
:Lists all of the available files and sub directories inside the current directory. Some variants of this are "dir/p" (pauses after each page) and "dir/w" (this gives a wide view)
 +
 
 +
== EXIT ==
 +
:Exit from DOSBox.
 +
 
 +
== [[IMGMOUNT]] ==
 +
:Mount CD-ROM and floppy disk images.
 +
 
 +
== [[IPX]] ==
 +
:Allows you to connect multiple instances of DOSBox using the IPX protocal.  
 +
 
 +
== [[KEYB]] ==
 +
:Is used to change the layout of the keyboard used for different countries.  
 +
 
 +
== LOADFIX ==
 +
:Loads a program above the first 64K of memory.
 +
 
 +
== LOADHIGH ==
 +
:Loads a program into upper memory (requires xms=true,umb=true)
 +
 
 +
== MD ==
 +
:Makes a directory.
 +
 
 +
== [[MEM]] ==
 +
:A program to display the amount of free memory.
 +
 
 +
== [[MIXER]] ==
 +
:Display current sound levels.
 +
 
 +
== [[MOUNT|MOUNT & IMGMOUNT]] ==
 +
: Mount folders and CD-ROM drives.
 +
 
 +
== MOVE (unsupported) ==
 +
:DOSBox has no MOVE command. Use the REN command to move files.
 +
 
 +
== RD ==
 +
:Removes a directory.
 +
 
 +
== REN ==
 +
:Renames one or more files.
 +
:Note: Unlike MS-DOS, DOSBox doesn't require the source and target filenames to be in the same folder.
 +
 
 +
== [[RESCAN]] ==
 +
: Refresh mounted drives. This has the same affect as pressing CTRL-F4.
 +
 
 +
== TYPE ==
 +
:Display the contents of a text-file.
 +
 
 +
== SET ==
 +
:Displays and sets environment variables
 +
 
 +
== VER ==
 +
:View and set the reported DOS version. Also displays the running DOSBox version.
 +
:To set the reported DOS version use the following:
 +
 
 +
  VER SET <MAJOR> [MINOR]
 +
 
 +
:where MAJOR is the number before the period, and MINOR is what comes after.
 +
:Versions can range from 0.0 to 255.255. Any values over 255 will loop from zero. (That is, 256=0, 257=1, 258=2, etc)

Latest revision as of 22:53, 5 July 2015

BOOT

Will start floppy images or hard disk images independent of the operating system emulation offered by DOSBox. This will allow you to play booter floppies or boot other operating systems inside DOSBox.

CD (Change Directory)

Allows you to move up and down a directory tree. CD is simple to use, just type
CD [Directory-Name]
And if the Directory-Name correctly refers to an available directory then you will be moved from your current working directory to the new one. Once completed, any command you issue will operate under the new working directory, and your prompt will be updated to reflect your current working directory. Multiple folders can be traversed at once (assuming you know the correct names) by typing their names together with the \ separating them for example
C:\>CD SIERRA\KQ5
C:\SIERRA\KQ5>
There are also 3 special directories that are available inside every directory which help you simply move around. They are
.        which refers to the current directory 
..       which refers to the directory directly above the current directory
/        which refers to the root directory
Once you have moved into a sub directory, you can move back by typing
C:\SIERRA\KQ5>CD ..
C:\SIERRA>
And like all other directories you can string them together
C:\SIERRA\KQ5>CD ..\..
C:\>
If you ever need to move back to the root directory you can use the \ alias.
C:\SIERRA\KQ5>CD \
C:\>

CHOICE

Waits for a keypress and sets ERRORLEVEL. Displays the given prompt followed by [Y,N]? for yes or no respones.
Used for batch scripts in most cases.
CHOICE "Text to ask"

CLS

Clears the screen of all input and returns just the current prompt in the upper left hand corner.

CONFIG

Change or query various DOSBox settings during runtime.

COPY

Copy a file
Syntax is COPY <Orignal Filename> <New Filename>
COPY Document.txt CopyOfDocument.TXT

DEL

Remove one or more files.

DIR

Lists all of the available files and sub directories inside the current directory. Some variants of this are "dir/p" (pauses after each page) and "dir/w" (this gives a wide view)

EXIT

Exit from DOSBox.

IMGMOUNT

Mount CD-ROM and floppy disk images.

IPX

Allows you to connect multiple instances of DOSBox using the IPX protocal.

KEYB

Is used to change the layout of the keyboard used for different countries.

LOADFIX

Loads a program above the first 64K of memory.

LOADHIGH

Loads a program into upper memory (requires xms=true,umb=true)

MD

Makes a directory.

MEM

A program to display the amount of free memory.

MIXER

Display current sound levels.

MOUNT & IMGMOUNT

Mount folders and CD-ROM drives.

MOVE (unsupported)

DOSBox has no MOVE command. Use the REN command to move files.

RD

Removes a directory.

REN

Renames one or more files.
Note: Unlike MS-DOS, DOSBox doesn't require the source and target filenames to be in the same folder.

RESCAN

Refresh mounted drives. This has the same affect as pressing CTRL-F4.

TYPE

Display the contents of a text-file.

SET

Displays and sets environment variables

VER

View and set the reported DOS version. Also displays the running DOSBox version.
To set the reported DOS version use the following:
VER SET <MAJOR> [MINOR]
where MAJOR is the number before the period, and MINOR is what comes after.
Versions can range from 0.0 to 255.255. Any values over 255 will loop from zero. (That is, 256=0, 257=1, 258=2, etc)