Question
I need help creating this batch file. I don't understand. Simply put, a batch file is a list of Command Prompt commands that are run
I need help creating this batch file. I don't understand.
Simply put, a batch file is a list of Command Prompt commands that are run in sequential order to automate a process. The batch file that you create in this part of the laboratory will be used to alter the directory structure that you created in the Command Prompt Lab. Batch files are created by using a text editor (NotePad) and are identified with a .bat extension. You will use commands that you have already practiced in this laboratory: DEL, and RMDIR (RD). You will also use the ECHO command to control displaying information on the screen. To start the text editor that comes with Windows 7 type Notepad in the search box from the START button. Make sure you save the batch file with the name ERASE.BAT. The text editor will try to trick you and save it as .bat.txt. Make sure you work around that and save it with a .BAT extension only.
1. Use a command available to you to create and save a batch file that has Erase as the filename and .BAT as the extension. Note that all delete and remove directory commands must include the switch to include the mode that eliminates prompting for a confirmation when a file/directory is deleted. The file should contain the following commands in sequence: A command to turn command echoing off.
A command to delete all files in the THREE directory
A command that displays the message that all files in the THREE directory have been deleted
A command to remove the THREE directory
A command that displays the message that the THREE directory has been removed.
A command to delete all files in the TWO directory
A command that displays the message that all files in the TWO directory have been deleted
A command to delete all files in the ONE directory
A command that displays the message that all files in the ONE directory have been deleted
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started