Batch File:
A batch file, created by a word processor, contains a list of DOS commands that are executed as if each was typed and entered one at a time. To identify the file, MS-DOS uses the file extension, .BAT (short for batch).
A batch file can do the following:
Reduce Effort; instead of typing long commands repetitively, type them once in a batch file.
Remap keys
Automate commands
Automate startup
Create a batch file using notepad. The batch file should do the following things:
clear the screen
CLS
change your prompt so that it displays your first name
PROMPT $PCHRISTINE$G
make a directory named subdir1 in the root directory
CD \
This command is unnecessary if the batch file is run from the root directory
MD SUBDIR1
make a subdirectory named subdir2 in the subdir1 directory
MD SUBDIR1\SUBDIR2
Or the following two steps;
CD SUBDIR1
Change to Subdir1 directory
MD SUBDIR2
move the text file you created in #1 from the root directory to subdir2
MOVE C:\CHRISTINE C:\SUBDIR1\SUBDIR2
list the directory of subdir2
DIR SUBDIR2
Or
CD SUBDIR2
DIR
~~~~~~~~~~~
Note: These are notes from my lectures as an IT instructor. Notes are from 1999-2001, so there may be little relevance to contemporary technologies. Still, it seemed like a shame to delete all of this work, so here they are. I hope someone finds them helpful.




AG Bill Schuette using his office as a right wing political tool
Wisconsin Democrats submit more than 1,000,000 signatures to recall Gov Walker
Asking for democracy is democracy in action
‘Choose Life’ plates would fund Right to Life through the Secretary of State
Report shows Shiawassee unemployment rate down


Comments