Batch File
Batch File
2
Work directory
Subdirectories
PUBLIC and PRIVATE
Subdirectories PROGRAMS
and DATA in the PUBLIC
directory
Subdirectory DOCUMENT in
the PRIVATE directory.
Text file named mylive.txt, with
my firstname, lastname, and
birth date
My firstname, lastname, and
birth date
Copied the file mylive.txt to the
DATA directory.
Renamed the file from
mylive.txt to my lastname,
Created a directory labeled
Lab
Two subdirectories LAB2A and
LAB3A in Lab directory
Subdirectory labeled LAB4 in
LAB3A directory
Text file file1.txt with my first
name and last name
Text file with my student ID
number
Placed the data from the files:
file1.txt and file2.txt into the
mydata.txt file
Displayed the contents of the
file mydata.txt.
Copied the file mydata.txt to the
LAB3 directory
Renamed mydata.txt to
filescal.txt
Renamed the file from
mydata.txt to mydata.lst
Enabled the "read only"
attribute for the file filescal.txt
Enabled the "hidden" attribute
for the LAB4 directory
Enabled "read only" and
"hidden" attributes for the file
file2.txt
Created a directory LABOR
Removed the structure from the
LAB directory to the LABOR
directory
Removed the structure from
the LAB directory to the
LABOR directory, with the
hidden files and directories and
the empty directory.
The information about the
structure of the WORK
directory
The information about the
attributes of this structure
Deleting the WORK\LAB
directory.
Exercise
2.c
Batch file exer3.bat that creates the
structures of the directories
Batch file exer3.bat that creates
the structures of the directories,
and displays the message:
"Directories created"
Exercise
3
To print “Operating Systems”
on the command prompt
Arithmetic Operators in a Batch
Script