File e cartelle Ficheiros e directórios Dateien und Verzeichnisse Fichiers et répertoires Microsoft DOS: Archivos y directorios

Files in MS DOS

In a computers data is stored in files. When you run a program, MS-DOS processes the data stored in the file and passes it to the system.
In MS-DOS a file can be any size, however the file name is more restricted, it can only have a maximum length of 8 characters plus 3 for the extension.

Furthermore, the files can only contain the following characters:

  • letters A to Z
  • numbers 0 to 9
  • the following special characters: $~! # % & - { } ( ) @ ' _ ^

Thus filenames must not contain:

  • spaces
  • commas
  • backslash
  • dot (apart from the dot that separates the name and the extension)

nor can they contain any of the following list of reserved names:

  • CLOCK$
  • CON
  • AUX
  • COM1
  • COM2
  • COM3
  • COM4
  • LPT1
  • LPT2
  • LPT3
  • NUL
  • PRN

Organising files in directories or folders

Depending on its size a hard drive may contain several thousands of files. However, the more files there are, the more difficult it is to manage them, this is when we need to store them in directories In MS-DOS, directory names are also subject to the same name restrictions as files (8 characters for the name, and an extension with 3 characters).

Last update on Thursday October 16, 2008 02:43:13 PM.This document entitled « MS DOS Files and directories » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « MS DOS Files and directories » in :
Basic MS-Dos commands Show Basic MS-Dos commands Intro The command prompts: Intro Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the...
VISTA ERROR: MS-DOS FUNCTION INVALID Show VISTA ERROR: MS-DOS FUNCTION INVALID Solution When trying to delete a file, Microsoft Vista display the following error message: Copy the file - An unexpected error fails operation. Note that the error code, which can help you...
Operating Systems - Installing MS-DOS Show Installing MS-DOS When installing MS-DOS, make sure that in the BIOS the the boot disk is set to A: first, then the hard drive (boot sequence: A:, C:) Then insert disk 1 in the A: drive, power up the computer, then follow the on-screen...
Connecting to a Ftp server under Ms-Dos ShowConnecting to a Ftp server under Ms-Dos The ftp command allows you to get connected using command lines. Some of these options provide an automatic connection; this is done through a list of commands store on a text file. ftp -i ...
Using Device Manager under Ms-Dos ShowUsing Device Manager under Ms-Dos Intro Device manager supported by MS-DOS ansi.sys display.sys dblspace.sys driver.sys ega.sys emm386.exe himem.sys ramdrive.sys setver.exe smartdrv.exe Intro A peripheral
[MS-Dos]List the contents of a directory in a file Show[MS-Dos]List the contents of a directory in a file Intro Explanation Intro It may be convenient to make the listing of one or more directories in a file, to make a catalog of files. Under MS-DOS (or Windows by opening a...
Download HP USB Disk Storage Format Tool ShowHP USB Disk Storage Format Tool is a small utility allowing to format a key USB or READER MP4. It also allows to make a key (Bootable). This software works with all keys and readers MP4 of the market. To make work this utility under Windows...
Download NTFS Reader ShowIt is now possible to have access to NTFS readers from MS DOS. NTFS Reader DOS Disk Boot allows the reading of NTFS readers from MS DOS. It supports long file names as well as well as compressed or fragmented files. NTFS Reader DOS Disk Boot...
Operating Systems - MS-DOS - Tips ShowSetting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do...
Introduction to DOS ShowThe development of MS-DOS MS-DOS is the most well known operating system, the most commercialised version is that of Microsoft, christened "MS-DOS" (there are other versions such as DR-DOS). MS-DOS was created in 1981 when it was used on an IBM...
Operating Systems - MS-DOS - Commands ShowCommand Description dir lists the contents of a folder cd changes folder cd .. parent folder md or mkdir creates a new folder deltree deletes a folder and all sub-folders copy, xcopy copies...