Uploaded by bilal20ccp

Command Line Bat File Project

advertisement
YourFirstinitiallastname: example – “BatProj2Spring”
Command Line Bat File Project
Type your – Bil Yous, H
CIS 105 Spring 2018
M-W: 11:10 am or 5 pm
Download three files from the Canvas Files section: Main.txt, Level-1.txt, Level-2.txt into
C:\users\your-name directory
Open Command Prompt :
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Instructions
Open Notepad and create a batch file that does the following:
Makes sub directory in C:\users\your-name called Main
Under Main make a sub directory called Level-1
Under Level-1 make subdirectory called Level-2
Copies file Level-1.txt to Level-1 directory
Copies file Level-2.txt to Level-2 directory
Display c:\users\your-name
pause
Clear the screen
Change directory to Llevel-1
Display directory
pause
Clear screen
Change directory to Level-2
Display directory
pause
Clear screen
Save the completed Bat file as BatProj2your initials to some for of “permanent storage”
Copy the statements from the BatProj2your initials bat file and paste below on this document
Paste here
md C:\Users\bbilal2\main
md C:\Users\bbilal2\main\Level-1
md C:\Users\bbilal2\main\Level-1\Level-2
copy Level-1.txt C:\Users\bbilal2\main\Level-1
copy Level-2.txt C:\Users\bbilal2\main\Level-1\Level-2
dir C:\Users\bbilal2
pause
cls
cd C:\Users\bbilal2\main\Level-1
dir
pause
cls
cd Level-2
dir
pause
cls
Upload this document to Canvas:
Download