What Is A File
What Is A File
Here are some of the types that need their full filenames:
. Bat Batch file commands in batch (batch).
.COM program file (COMMAND).
.EXE file ready (executable).
.DOC text or document file .
.ASM is a program source file written in assembly language (ASSEMBLY).
.BAK backup file (BACKUP).
.BAS Program File (BASIC).
.DBF DATABASE FILE (DBASE FILE).
.PAS is a program file written in Pascal (PASCAL) language.
.SYS System Configuration File (SYSTEM).
.C source file written in C language.
programming languages
Symbols used to name files:
1- The alphabet from A to Z (whether small or large).
2- Numbers from 0 to 9.
3- Some signs like: ({}, (), &,%, $, #,!).
example
d:\ copy con c:\ ff.txt
Reading Files in MS DOS
For reading the Pre-created files in
MS DOS, we use the TYPE command.
It displays all the contents that are
in the file>
Note: This command displays text
files, but EXE-COM-SYS files cannot
be displayed.
Syntax :
◦ TYPE (path of the file . Extension)
example
d:\ type c:\ ff.txt
Creating Files in MS DOS
For creating the files in DOS, the command COPY CON is used
Syntax:
◦ COPY CON (path of filename. Extension)
Note1: File name should not exceed eight
characters excluding three characters for
extension
◦ example
c:\ copy con c:\ ff.txt
Note2: After creating it in order to saving
it, we press the two keys
( ctrl + Z)
Renaming Files
Syntax:
REN oldfilename newfilename
◦ example
D:/>ren tt.txt tt1.txt
D:/>ren tt.txt tt.doc
Deleting Files in MS DOS
Syntax :
◦ DEL Filename
◦ example
D:/>del tt1.txt