Using DEL , REN, MOVE, and RD /S

Download Using  DEL ,  REN,  MOVE, and RD /S

Post on 31-Dec-2015

28 views

Category:

Documents

1 download

Embed Size (px)

DESCRIPTION

Chapter 6. Using DEL , REN, MOVE, and RD /S. Overview. Will continue to work with internal commands that help manage and manipulate files. Overview. Will focus on the following commands: DEL REN MOVE RD /S. Overview. - PowerPoint PPT Presentation

TRANSCRIPT

<ul><li><p>Using DEL, REN, MOVE, and RD /S</p><p>Ch 6</p></li><li><p>Overview</p><p>Will continue to work with internal commands that help manage and manipulate files.</p><p>Ch 6</p></li><li><p>Overview</p><p>Will focus on the following commands: DEL REN MOVE RD /S</p><p>Ch 6</p></li><li><p>Overview</p><p>Why and how to back up specific files, or an entire disk, so as to not lose important data will be discussed.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL CommandKeep only the files you need on your disk.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL Command</p><p>DEL command used to erase unwanted files.</p><p>ERASE command works the same way DEL command works.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL Command</p><p>A file deleted at the command line is not physically removed from the disk.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL Command</p><p>It is sometimes possible to recover a file deleted at the command line.</p><p>However, when DEL is used the file/s are deleted.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL CommandFile deleted from hard drive using My Computer or Windows Explorer is recoverable.</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL CommandFiles not recoverable are those deleted from: Removable disk/s Floppy disks Command prompt</p><p>Ch 6</p></li><li><p>Eliminating Files with the DEL CommandDEL command syntax:DEL [/P] [/F] [/S] [/Q] [/A [[:] attributes]] names</p><p>Names refers to [drive:] [path] filename</p><p>Ch 6</p></li><li><p>ActivityUsing the DEL CommandKEY CONCEPTS: Function of DIR Why drive letter and path not included DEL does not confirm prior to deletion</p><p>Ch 6</p></li><li><p>Deleting Multiple Files DEL can be used to delete multiple files.Separate (by spaces) files to be deleted.</p><p>Ch 6</p></li><li><p>ActivityUsing DEL with Multiple ParametersKEY CONCEPTS: Using DIR Deleting multiple files with DEL</p><p>Ch 6</p></li><li><p>Deleting Files on Other Drives and Directories</p><p>The DEL command can be used to eliminate files on other drives and subdirectories.</p><p>Ch 6</p></li><li><p>Deleting Files on Other Drives and Directories</p><p>DEL command syntax:DEL names</p><p>Names refers to designated drives, subdirectories, and names of files you wish to delete.</p><p>Ch 6</p></li><li><p>Deleting Files on Other Drives and Directories</p><p>Order and logic of syntax are important when keying in command.</p><p>Ch 6</p></li><li><p>Deleting Files on Other Drives and Directories</p><p> Common error:DEL GONE.FIL B:</p><p> Should be: DEL B:GONE.FIL</p><p>Ch 6</p></li><li><p>ActivityUsing the DEL Command with Individual FilesKEY CONCEPTS:Using proper syntaxUse of second backslashUsing COPY gives two identically named files on different drivesDIR - shows file is thereDEL - deletes file</p><p>Ch 6</p></li><li><p>Using Wildcards with the DEL Command</p><p>To delete many files at one time use wildcards with the DEL command.</p><p>Ch 6</p></li><li><p>ActivityUsing the DEL CommandKEY CONCEPTS:Use DIR prior to global eraseFiles deleted with DEL and wildcards not recoverableWildcards can be used when files are in subdirectory</p><p>Ch 6</p></li><li><p>The /P and /S Parameters with the DEL Command/P parameter with DEL command verifies prior to each file deletion.</p><p>Ch 6</p></li><li><p>The /P and /S Parameters with the DEL Command</p><p>The /S parameter traverses the directory tree so files do not need to be deleted individually throughout disk structure.</p><p>Ch 6</p></li><li><p>The /P and /S Parameters with the DEL CommandAgain, DEL command syntax:DEL [/P] [/F] [/S] [/Q] [/A [[:] attributes]] names</p><p>Names refers to [drive:] [path] filename</p><p>Ch 6</p></li><li><p>ActivityUsing /P and /S with the DEL CommandKEY CONCEPTS:Use of /P parameterUse of /S parameterUse of DIR commandCan use more than one parameter at a time</p><p>Ch 6</p></li><li><p>Changing File NamesRename file because: File contents changed Want the name for another file File named incorrectly You think of a better name</p><p>Ch 6</p></li><li><p>Changing File NamesCOPY command:Create another file with same contents but a different nameEnd up with file and copy of file with another name</p><p>Ch 6</p></li><li><p>Changing File NamesRENAME command:Changes name of file - contents remain the sameEnd up with same file with a new name</p><p>Ch 6</p></li><li><p>Changing File NamesRENAME command has two forms: RENAME REN</p><p>Ch 6</p></li><li><p>Changing File Names</p><p>REN/RENAME syntax: </p><p>REN [drive:] [path] [directoryname1 | filename1] [directoryname2 | filename2] </p><p>Ch 6</p></li><li><p>Changing File Names</p><p>Renaming files:Two step process in My Computer/Windows ExplorerOne step process at command line</p><p>Ch 6</p></li><li><p>ActivityUsing the REN Command to Rename Files</p><p>KEY CONCEPTS: When destination and *.* assumed REN command vs. COPY command</p><p>Ch 6</p></li><li><p>Changing the Names of Subdirectories</p><p>Prior to Windows 95, REN command only worked with files.</p><p>Windows 95 REN command also used to rename subdirectories.</p><p>Ch 6</p></li><li><p>Changing the Names of Subdirectories</p><p>Partial syntax for renaming subdirectories:</p><p>REN [drive:] [path] [directoryname1] [directoryname2]</p><p>Ch 6</p></li><li><p>ActivityUsing REN Command to Rename SubdirectoriesKEY CONCEPTS:Command executed if no error message Can rename subdirectories that are within other subdirectories</p><p>Ch 6</p></li><li><p>Using REN with Wildcards</p><p>Multiple files on the same drive or directory that have a common element can be renamed using REN command with wildcards.</p><p>Ch 6</p></li><li><p>ActivityUsing REN with WildcardsKEY CONCEPTS:Compare ???.NEW with *.NEWRenaming multiple files in same directory with one command</p><p>Ch 6</p></li><li><p>Using RENAME on Different Drives &amp; Directories</p><p>The REN command can be used to rename any file on any drive or directory.</p><p>Ch 6</p></li><li><p>Using RENAME on Different Drives &amp; DirectoriesCompare:REN OLDFILE.EXT NEWFILE.EXT</p><p>REN B:OLDFILE.EXT NEWFILE.EXT</p><p>REN C:\JUNK\OLDFILE.EXT NEWFILE.EXT</p><p>Ch 6</p></li><li><p>Using RENAME on Different Drives &amp; Directories</p><p>COPY - end up with two identical files in different locations.</p><p>REN - changes name of an existing file in a specific location.</p><p>Ch 6</p></li><li><p>ActivityUsing Rename on Different DrivesKEY CONCEPTS:OS will not put a drive designator before new file name in RENREN Changes names not file contents Does not move filesDIR vs. TYPE commands</p><p>Ch 6</p></li><li><p>Moving Files and Renaming Directories</p><p>Review of commands:MOVE used to rename a directoryREN/RENAME used to rename files and subdirectories </p><p>Ch 6</p></li><li><p>Moving Files and Renaming DirectoriesMOVE command:Move group of files or subdirectories - cannot change namesMove individual file/subdirectory - can change name of moved file or subdirectory Move files/directories from one directory to another, from one drive to another</p><p>Ch 6</p></li><li><p>Moving Files and Renaming Directories</p><p>Syntax to move one of more files:</p><p>MOVE [/Y | /-Y] [drive:] [path] filename1 [,] destination</p><p>Ch 6</p></li><li><p>Moving Files and Renaming DirectoriesSyntax to rename a directory:</p><p>MOVE [/y | /-y] [drive:] [path]dirname1 dirname2</p><p>Ch 6</p></li><li><p>ActivityMoving Files &amp; Renaming DirectoriesKEY CONCEPTS:Differences between syntax of MOVE and RENWhen do you use MOVE? REN?Move file in same drive/directory - eliminates first file and replaces contents of second file with contents of first file</p><p>Ch 6</p></li><li><p>ActivityMoving Files &amp; Renaming DirectoriesKEY CONCEPTS: MOVE Used instead of COPY, REN, DELCan act like COPYCannot change file names when used with wildcardsCannot concatenate filesCan move entire subdirectory structure along with files with one command</p><p>Ch 6</p></li><li><p>RD /S RevisitedTwo ways to remove a directory: RD (two-step process) RD /S (one-step process) </p><p>Ch 6</p></li><li><p>Activity: Using RD and RD /SKEY CONCEPTS: Using RD command Using RD /S command</p><p>Ch 6</p></li><li><p>Backing Up Your DATA Disk</p><p>Always back up all data files. </p><p>Backing up application program disks can be tricky, especially copy-protected disks </p><p>Ch 6</p></li><li><p>Backing Up Your DATA Disk</p><p>Special operating commands and procedures must be used to back up a hard disk.</p><p>Ch 6</p></li><li><p>Backing Up Your DATA Disk</p><p>Three ways to back up data files: DISKCOPY COPY XCOPY</p><p>Ch 6</p></li><li><p>Backing Up Your DATA DiskNever use the MOVE command for backup purposes.</p><p>Ch 6</p></li><li><p>Backing Up Your DATA DiskDevelop a regular backup routine. Can use tape backup. Use writable CD if availableMessage is BACK UP DATA FILES</p><p>Ch 6</p></li><li><p>Backing Up Your DATA DiskApplication programs can usually be reinstalled from original disks.</p><p>Ch 6</p></li><li><p>ActivityBacking Up with the DISKCOPY CommandKEY CONCEPTS:How to not accidentally copy hard driveUse DISKCOPY - get 2 copies of DATA disk </p><p>Ch 6</p></li><li><p>ActivityBacking Up with the DISKCOPY CommandBackup disk Keep current Have two or more Check backup disk regularly Some organizations need to recreate records Need archival backup Need transaction history</p><p>Ch 6</p></li><li><p>Backing Up Files with the COPY CommandDISKCOPY: Backs up entire floppy disk Formats new disk</p><p>Ch 6</p></li><li><p>Backing Up Files with the COPY CommandCOPY:Used to backup specific filesCopy files from one floppy to anotherDoes not format new diskMust not be used to copy all files from hard disk to floppy</p><p>Ch 6</p></li><li><p>Backing Up Files with the COPY CommandDo regular backups:Back up files that have changed or are new</p><p>Ch 6</p></li></ul>