Guest User

Untitled

a guest
Jun 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if ("%1"=="") goto usage
  2.  
  3. @echo This should not execute
  4.  
  5. @echo Done.
  6. goto :eof
  7.  
  8. :usage
  9. @echo Usage: %0 <EnvironmentName>
  10. exit 1
  11.  
  12. @echo off
  13.  
  14. if [%1]==[] goto usage
  15. @echo This should not execute
  16. @echo Done.
  17. goto :eof
  18. :usage
  19. @echo Usage: %0 ^<EnvironmentName^>
  20. exit /B 1
  21.  
  22. echo "%1"
  23.  
  24. if ("%1"=="") echo match1
  25.  
  26. if "%1"=="" echo match2
  27.  
  28. C:>echo ""
  29. ""
  30.  
  31. C:>if ("" == "") echo match1
  32.  
  33. C:>if "" == "" echo match2
  34. match2
Add Comment
Please, Sign In to add comment