To the Top


Last Modified: October 30 2020 14:33:15
File:  root - programs - 80x86_batch - 2008 - 5 - smd.bat
File Size: 0.56KB


  1. @echo off
  2. :: http://www.zhihua-lai.com/acm
  3. setlocal
  4. if [%1] equ [] goto help
  5. :work
  6. set supermd=%1
  7. if "%supermd%"=="(" goto error
  8. if "%supermd%"==")" goto error
  9. mkdir %supermd%
  10. echo Making "%supermd%"
  11. shift
  12. if "%1"=="" goto end
  13. if "%1"=="(" goto signin
  14. if "%1"==")" goto signout
  15. goto work
  16. :signin
  17. cd "%supermd%"
  18. shift
  19. goto work
  20. :signout
  21. cd ..
  22. shift
  23. goto work
  24. :help
  25. echo.
  26. echo Usage:%0 a b ( c d e ) f g ( h i )
  27. echo.
  28. goto end
  29. :error
  30. echo.
  31. echo Error!
  32. echo.
  33. :end
  34. endlocal

Comments (0)

    Be the first one to comment this page !


Page Edited: May 11 2024 14:36:49 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />