Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. :: Sean Reilly
  2. :: Student Number = 040884276
  3. :: Submitted Wednesday 26th July 2017
  4.  
  5. @echo off
  6.  
  7. ECHO "Welcome to CST8202 Lab 10 Script"
  8. ECHO "This script creates or removes groups, users, and their folders"
  9. ECHO "Please enter "creating" or "deleting" to specify your choice"
  10.  
  11. :: Setting a variable %choice% from prompt
  12. SET /P choice=
  13.  
  14. :: If logic controls progression towards creating or deleting
  15. IF (%choice% == creating ) {
  16. ECHO "You selected to run the create script
  17. PAUSE
  18. CALL reil0041-Create.bat
  19. }
  20. IF (%choice% == deleting ) {
  21. ECHO "You selected to run the delete script
  22. PAUSE
  23. CALL reil0041-Remove.bat
  24. }
  25. :: Else case simple loop back to the beginning of this section
  26. ELSE {
  27.  
  28. CLS
  29. GOTO :START:
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement