mkvers1.bat 544 B

1234567891011121314151617181920212223242526272829303132
  1. @if "%1." == "." goto ERR2
  2. @if "%TEMP1%." == "." goto ERR1
  3. @if "%TEMP1%" == "1" goto SET1
  4. @if "%TEMP1%" == "2" goto SET2
  5. @if "%TEMP1%" == "3" goto SET3
  6. @echo environment variable has an invalid value %TEMP1% ...
  7. @goto ERR2
  8. :SET1
  9. @set TEMPX1=%1
  10. @set TEMP1=2
  11. @goto END
  12. :SET2
  13. @set TEMPX2=%1
  14. @set TEMP1=3
  15. @goto END
  16. :SET3
  17. @set TEMPX3=%1
  18. @set TEMP1=4
  19. @goto END
  20. :ERR1
  21. @echo Environment variable TEMP1 not set ...
  22. :ERR2
  23. @echo This batch is only intended to be run from within UPDVERS.BAT ...
  24. @pause
  25. @goto END
  26. :END