Use the "dir" command (without the quotes) to see all files in the current directory.
Use the "type" command (Just like before, no quotation marks.) followed by a file you want to look at to see the file's contents.
Use the "echo" command (Okay, I think you get the point about the quotation marks now.) to print something to the screen. Not very useful. Is it? You can use the "echo" command to overwrite files too! For example, "echo Hello >> a.txt" will overwrite a.txt with the text "Hello." If a.txt does not exist, the echo command will create one.
You need to use the MS-DOS commands to move a file.
Batch File
the deleted file if ms dos can be recovered if you use the command mention below immediately,the command is : need External Dos commands and internal dos commands with their meaning
what is the differences between a file and a folder
Batch file programming is dos based programming you have to use dos commands .It is very good to perform some repetitive task in computer programming is easy you should only know the dos commands.
An AUTOEXEC.BAT file contains MS-DOS commands which are executed automatically when a Personal Computer boots.
autoexec.bat usually in: C:\autoexec.bat
In MS-DOS, the file that contains internal commands loaded during the booting process is COMMAND.COM. This file serves as the command line interpreter and contains the basic commands necessary for operating the system. When MS-DOS starts, COMMAND.COM is loaded into memory, allowing users to execute commands and run programs.
The Redirection commands write/display the designated file/text to a specified location, whether it is a .txt file or another DOS terminal
MOVE as well as COPY and XCOPY, which leave the source file where it was.
MS-DOS ended with Windows NT. It used file command.com to interpret all DOS commands. Win 2000, XP, Vista use a DOS Shell which emulates DOS but is not really DOS.
A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.