Dos 1
Dos 1
Change Directory Goes to the highest level - the root of the current drive: C:\> or A:\> for example. Goes up one directory. For example if you are within the C:\WINDOWS\COMMAND> directory this would take you to C:\WINDOWS> If present would take you into the Windows directory. Windows can be substituted with any other name.
cd windows
copy Copy Command copy *.* a: This would copy all files in the directory currently in to the floppy disk in drive a: copy autoexec.bat c:\windows This would take the autoexec.bat usually found at root and copy it into the windows directory the autoexec.bat can be substituted for any file(s).
This would copy the win.ini file which is already in your windows directory to the windows directory without prompting if you wanted to overwrite the file or not.
del Delete File(s) del test.tmp Deletes test.tmp in the directory that you currently are in, if the file exists. del c:\windows\test.tmp del c:\windows\temp\*.* Delete c:\windows\test.tmp in the windows directory if it exists. (* is for wild character(s)) *.* indicates that you would like to delete all files in the c:\windows\temp directory. (? is a single wild character for one letter) This command would delete any file ending with est.tmp such as pest.tmp or zest.tmp...
del c:\windows\temp\?est.tmp
deltree Delete Directories (and Files therein) deltree c:\windows\fake010 = Deletes the fake010 directory and everything in it. dir dir Directory Contents Lists all files and directories in the directory that you are currently in.
dir /s Lists the files in the directory that you are in and all sub directories after that directory, if you are at root "C:\>" and type this command this will list to you every file and directory that is on the computer. dir /p If the directory has a lot of files and you cannot read all the files you can use this command and it will display all files one page at a time.
dir /w If you don't need the info on the date / time and other information on the files you can use this command to list just the files and directories going horizontal taking as little as space needed. dir /s /w /p This would list all the files and directories in the current directory and the subdirectories after that in wide format one page at a time.
edit Use MS-DOS Editor edit c:\autoexec.bat This would look at the autoexec.bat; however, if the file is not found you will have a blank blue screen. When editing this or any file, ensures that you know what you are placing in the files. Using edit, you can also create files; for example if you wanted to create a new file called myfile.txt you would type: edit myfile.txt <press enter> This would bring up a blank edit screen; as long as the file is saved upon exit this will create the file myfile.txt. move Move File(s) into a Different Directory move c:\windows\temp\*.* c:\temp This would move the files of c:\windows\temp to the temp directory in root, this is of course assuming you have the windows\temp directory. rename Rename Files and Directories rename c:\chope hope Rename the directory chope to hope. rename *.txt *.bak Rename all text files to files with .bak extension.
rename * 1_* Rename all files to begin with 1_. The asterisk (*) in this example is an example of a wild character because nothing was placed before or after the first asterisk this means all files.