Difference between revisions of "Commands"

From DOSBoxWiki
Jump to navigationJump to search
m (→‎MOUNT: changed mount to mount & imgmount)
 
(55 intermediate revisions by 48 users not shown)
Line 1: Line 1:
comment5, http://www.youtube.com/ringtonestut Verizon Ringtones,  cqurf,
+
== [[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.  
  
comment6, http://forums.thedailywtf.com/members/Cingular-Phone-Free-Ringtones.aspx Cingular Phone Free Ringtones,  =-O, http://forums.thedailywtf.com/members/Christian-Music-Ringtones.aspx Christian Music Ringtones,  770, http://forums.thedailywtf.com/members/Compose-Motorola-Ringtones.aspx Compose Motorola Ringtones,  ewwwma, http://forums.thedailywtf.com/members/Cellular-One-Ringtones.aspx Cellular One Ringtones,  0436, http://forums.thedailywtf.com/members/Cell-Ringtones.aspx Cell Ringtones,  kswpkv, http://forums.thedailywtf.com/members/Composer-Christmas-Ringtones.aspx Composer Christmas Ringtones,  9315, http://forums.thedailywtf.com/members/Celine-Dion-Ringtones.aspx Celine Dion Ringtones,  0461, http://forums.thedailywtf.com/members/Coldplay-Ringtones.aspx Coldplay Ringtones,  0682, http://forums.thedailywtf.com/members/Completely-Free-Verizon-Ringtones.aspx Completely Free Verizon Ringtones,  8-], http://forums.thedailywtf.com/members/Chicken-Ringtones.aspx Chicken Ringtones,  3929, http://forums.thedailywtf.com/members/Cellular-South-Ringtones.aspx Cellular South Ringtones,  >:-DDD, http://forums.thedailywtf.com/members/Ciara-Ringtones.aspx Ciara Ringtones,  8-PP, http://forums.thedailywtf.com/members/Cityrail-Ringtones.aspx Cityrail Ringtones,  ismjwx, http://forums.thedailywtf.com/members/Comedy-Ringtones.aspx Comedy Ringtones,  53075, http://forums.thedailywtf.com/members/Colton-Ford-Ringtones.aspx Colton Ford Ringtones,  %-OO, http://forums.thedailywtf.com/members/Christmas-Polyphonic-Ringtones.aspx Christmas Polyphonic Ringtones,  %-]]], http://forums.thedailywtf.com/members/Centennial-Wireless-Ringtones.aspx Centennial Wireless Ringtones,  %-[[[, http://forums.thedailywtf.com/members/Composer-Motorola-Free-Ringtones.aspx Composer Motorola Free Ringtones,  28885, http://forums.thedailywtf.com/members/Cingualr-Ringtones.aspx Cingualr Ringtones,  hsualw, http://forums.thedailywtf.com/members/Chemical-Brothers-Ringtones.aspx Chemical Brothers Ringtones, 638,
+
== CD (Change Directory) ==
 +
:Allows you to move up and down a directory tree'''CD''' is simple to use, just type
  
comment5, http://forums.thedailywtf.com/members/Create-Ringtones-Free.aspx Create Ringtones Free,  9848, http://forums.thedailywtf.com/members/Crazy-Frog-Ringtones.aspx Crazy Frog Ringtones,  :-OO, http://forums.thedailywtf.com/members/Conway-Twitty-Ringtones.aspx Conway Twitty Ringtones,  tiznx, http://forums.thedailywtf.com/members/Dave-Brubeck-Ringtones.aspx Dave Brubeck Ringtones,  kjyvy, http://forums.thedailywtf.com/members/Convert-Mp3-To-Ringtones.aspx Convert Mp3 To Ringtones,  8-))), http://forums.thedailywtf.com/members/Deadwood-Ringtones.aspx Deadwood Ringtones,  088225, http://forums.thedailywtf.com/members/Composing-Your-Own-Ringtones.aspx Composing Your Own Ringtones,  8O, http://forums.thedailywtf.com/members/Dance-Ringtones.aspx Dance Ringtones,  =-)), http://forums.thedailywtf.com/members/Creating-Ringtones.aspx Creating Ringtones,  =D, http://forums.thedailywtf.com/members/Cosmic-Sounds-Ringtones.aspx Cosmic Sounds Ringtones,  >:DDD, http://forums.thedailywtf.com/members/Cool-Ringtones.aspx Cool Ringtones,  %-DDD, http://forums.thedailywtf.com/members/Create-My-Own-Ringtones.aspx Create My Own Ringtones,  =O, http://forums.thedailywtf.com/members/Creating-Ringtones-For-Iphone.aspx Creating Ringtones For Iphone,  6632, http://forums.thedailywtf.com/members/Cricket-Tv-Ringtones.aspx Cricket Tv Ringtones,  8], http://forums.thedailywtf.com/members/Custom-Ringtones.aspx Custom Ringtones,  666950, http://forums.thedailywtf.com/members/Crazy-Ringtones.aspx Crazy Ringtones,  %-O, http://forums.thedailywtf.com/members/Corinne-Bailey-Rae-Ringtones.aspx Corinne Bailey Rae Ringtones,  mqzmxb, http://forums.thedailywtf.com/members/Deer-Ringtones.aspx Deer Ringtones,  :PP, http://forums.thedailywtf.com/members/Create-Own-Ringtones.aspx Create Own Ringtones,  %-(, http://forums.thedailywtf.com/members/Cosmic-Sounds-Ringtones-Free.aspx Cosmic Sounds Ringtones Free, %-],
+
  CD [Directory-Name]
  
comment3, http://forums.thedailywtf.com/members/Download-Free-Monophonic-Ringtones.aspx Download Free Monophonic Ringtones,  341, http://forums.thedailywtf.com/members/Download-Christmas-Ringtones.aspx Download Christmas Ringtones,  37068, http://forums.thedailywtf.com/members/Download-Free-Verizon-Ringtones.aspx Download Free Verizon Ringtones,  8[[[, http://forums.thedailywtf.com/members/Disturbed-Ringtones.aspx Disturbed Ringtones, 218546, http://forums.thedailywtf.com/members/Dirty-Ringtones.aspx Dirty Ringtones, >:-], http://forums.thedailywtf.com/members/Download-Motorola-Ringtones.aspx Download Motorola Ringtones, =-[, http://forums.thedailywtf.com/members/Delve-Ringtones.aspx Delve Ringtones,  09421, http://forums.thedailywtf.com/members/Download-Free-Tamil-Ringtones.aspx Download Free Tamil Ringtones,  %-OOO, http://forums.thedailywtf.com/members/Download-Free-Nextel-Ringtones.aspx Download Free Nextel Ringtones,  36453, http://forums.thedailywtf.com/members/Download-Bird-Ringtones.aspx Download Bird Ringtones,  %-DD, http://forums.thedailywtf.com/members/Disturbia-Ringtones-Movie.aspx Disturbia Ringtones Movie,  :[, http://forums.thedailywtf.com/members/Download-Free-Alltel-Ringtones.aspx Download Free Alltel Ringtones,  >:], http://forums.thedailywtf.com/members/Download-Free-Mp3-Ringtones.aspx Download Free Mp3 Ringtones,  >:))), http://forums.thedailywtf.com/members/Download-Free-Sidekick-Ringtones.aspx Download Free Sidekick Ringtones,  021465, http://forums.thedailywtf.com/members/Download-Free-Polyphonic-Ringtones.aspx Download Free Polyphonic Ringtones,  pbpi, http://forums.thedailywtf.com/members/Download-Cingular-Ringtones.aspx Download Cingular Ringtones,  871, http://forums.thedailywtf.com/members/Doctor-Who-Ringtones.aspx Doctor Who Ringtones,  31417, http://forums.thedailywtf.com/members/Download-Free-Midi-Ringtones.aspx Download Free Midi Ringtones,  bcx, http://forums.thedailywtf.com/members/Download-Mp3-Ringtones.aspx Download Mp3 Ringtones,  xbms, http://forums.thedailywtf.com/members/Dolly-Parton-Ringtones.aspx Dolly Parton Ringtones,  hxqbt,
+
:And if the Directory-Name correctly refers to an available directory then you will be moved from your current working directory to the new oneOnce completed, any command you issue will operate under the new working directory, and your prompt will be updated to reflect your current working directoryMultiple folders can be traversed at once (assuming you know the correct names) by typing their names together with the '''\''' separating them for example
  
comment5, http://forums.thedailywtf.com/members/Emergency-Ringtones.aspx Emergency Ringtones, uqh, http://forums.thedailywtf.com/members/Dr-Who-Ringtones.aspx Dr Who Ringtones,  >:]], http://forums.thedailywtf.com/members/Download-Ringtones-To-Computer.aspx Download Ringtones To Computer, 490610, http://forums.thedailywtf.com/members/Free-Altel-Ringtones.aspx Free Altel Ringtones,  706184, http://forums.thedailywtf.com/members/Download-Ringtones-Free.aspx Download Ringtones Free,  8-)), http://forums.thedailywtf.com/members/Free-Animal-Ringtones.aspx Free Animal Ringtones,  drl, http://forums.thedailywtf.com/members/Download-Nokia-Ringtones.aspx Download Nokia Ringtones,  hqo, http://forums.thedailywtf.com/members/Free-Actual-Song-Ringtones.aspx Free Actual Song Ringtones,  56483, http://forums.thedailywtf.com/members/Enjoy-Christian-Ringtones.aspx Enjoy Christian Ringtones,  445147, http://forums.thedailywtf.com/members/Downloading-Ringtones.aspx Downloading Ringtones,  525142, http://forums.thedailywtf.com/members/Downloadable-Animal-Ringtones.aspx Downloadable Animal Ringtones,  gut, http://forums.thedailywtf.com/members/Elk-Bugle-Ringtones.aspx Elk Bugle Ringtones,  rnf, http://forums.thedailywtf.com/members/Endangered-Ringtones.aspx Endangered Ringtones,  8P, http://forums.thedailywtf.com/members/Firefighter-Ringtones.aspx Firefighter Ringtones,  spabgf, http://forums.thedailywtf.com/members/Fergie-Ringtones.aspx Fergie Ringtones,  tonhsr, http://forums.thedailywtf.com/members/E-Nature-Ringtones.aspx E Nature Ringtones,  mos, http://forums.thedailywtf.com/members/Downloadable-Ringtones-For-Alltel.aspx Downloadable Ringtones For Alltel,  832508, http://forums.thedailywtf.com/members/Free-Anime-Ringtones.aspx Free Anime Ringtones,  %(, http://forums.thedailywtf.com/members/Elk-Ringtones.aspx Elk Ringtones,  379, http://forums.thedailywtf.com/members/Downloadable-Ringtones-For-Cingular.aspx Downloadable Ringtones For Cingular,  8],
+
  C:\>'''CD SIERRA\KQ5'''
 +
  C:\SIERRA\KQ5>
  
comment2, http://forums.thedailywtf.com/members/Free-Centennial-Ringtones.aspx Free Centennial Ringtones, 06238, http://forums.thedailywtf.com/members/Free-Cell-Ringtones.aspx Free Cell Ringtones, 8[[, http://forums.thedailywtf.com/members/Free-Bluetooth-Ringtones.aspx Free Bluetooth Ringtones,  %D, http://forums.thedailywtf.com/members/Free-Disney-Ringtones.aspx Free Disney Ringtones=-[[, http://forums.thedailywtf.com/members/Free-Bleach-Ringtones.aspx Free Bleach Ringtones, bguzp, http://forums.thedailywtf.com/members/Free-Dixie-Horn-Ringtones.aspx Free Dixie Horn Ringtones,  huxjwf, http://forums.thedailywtf.com/members/Free-Blackbeery-Ringtones.aspx Free Blackbeery Ringtones, 8(, http://forums.thedailywtf.com/members/Free-Def-Leppard-Ringtones.aspx Free Def Leppard Ringtones,  =O, http://forums.thedailywtf.com/members/Free-Clasical-Midi-Ringtones.aspx Free Clasical Midi Ringtones, :-((, http://forums.thedailywtf.com/members/Free-Bruce-Springsteen-Ringtones.aspx Free Bruce Springsteen Ringtones, ova, http://forums.thedailywtf.com/members/Free-Bollywood-Ringtones-Download.aspx Free Bollywood Ringtones Download, sru, http://forums.thedailywtf.com/members/Free-Cellular-Ringtones.aspx Free Cellular Ringtones, >:], http://forums.thedailywtf.com/members/Free-Christian-Nokia-Ringtones.aspx Free Christian Nokia Ringtones, tarbs, http://forums.thedailywtf.com/members/Free-Composing-Song-Ringtones.aspx Free Composing Song Ringtones,  :]]], http://forums.thedailywtf.com/members/Free-Country-Music-Ringtones.aspx Free Country Music Ringtones,  1213, http://forums.thedailywtf.com/members/Free-Cellphones-Ringtones.aspx Free Cellphones Ringtones,  %], http://forums.thedailywtf.com/members/Free-Bollywood-Ringtones.aspx Free Bollywood Ringtones,  >:-(((, http://forums.thedailywtf.com/members/Free-Cellular-South-Ringtones.aspx Free Cellular South Ringtones,  96534, http://forums.thedailywtf.com/members/Free-Downloadable-Mp3-Ringtones.aspx Free Downloadable Mp3 Ringtones,  qkcal, http://forums.thedailywtf.com/members/Free-Boost-Ringtones.aspx Free Boost Ringtones,  vwy,
+
: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 ==
 
== MD ==
 
:Makes a directory.
 
: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) ==
 
== MOVE (unsupported) ==
Line 19: Line 94:
 
== RD ==
 
== RD ==
 
:Removes a directory.
 
:Removes a directory.
 
== TYPE ==
 
:Display the contents of a text-file.
 
  
 
== REN ==
 
== REN ==
 
:Renames one or more files.
 
:Renames one or more files.
:Note: Unlike MS DOS, DOSBox doesn't require the source and target filenames to be in the same folder.
+
:Note: Unlike MS-DOS, DOSBox doesn't require the source and target filenames to be in the same folder.
  
== LOADHIGH ==
+
== [[RESCAN]] ==
:Loads a program into upper memory (requires xms=true,umb=true)
+
: Refresh mounted drives. This has the same affect as pressing CTRL-F4.
  
== CHOICE ==
+
== TYPE ==
:Waits for a keypress and sets ERRORLEVEL. Displays the given prompt followed by [Y,N]? for yes or no respones.
+
:Display the contents of a text-file.
:Used for batch scripts in most cases.
 
  
CHOICE "Text to ask"
+
== SET ==
 +
:Displays and sets environment variables
  
 
== VER ==
 
== VER ==

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)