Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Sean Reilly
- :: Student Number = 040884276
- :: Submitted Wednesday 26th July 2017
- @echo off
- ECHO "Welcome to CST8202 Lab 10 Script"
- ECHO "This script creates or removes groups, users, and their folders"
- ECHO "Please enter "creating" or "deleting" to specify your choice"
- :: Setting a variable %choice% from prompt
- SET /P choice=
- :: If logic controls progression towards creating or deleting
- IF (%choice% == creating ) {
- ECHO "You selected to run the create script
- PAUSE
- CALL reil0041-Create.bat
- }
- IF (%choice% == deleting ) {
- ECHO "You selected to run the delete script
- PAUSE
- CALL reil0041-Remove.bat
- }
- :: Else case simple loop back to the beginning of this section
- ELSE {
- CLS
- GOTO :START:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement