Advertisement
Guest User

Untitled

a guest
Jan 27th, 2016
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. ASSOC - does not work with switches
  2. BREAK - does no accept any other arguments except /?
  3. CALL - get bad switches as a path
  4. CD/CHDIR - get bad switches as a path
  5. CLS* - recognizes bad switches . Sets error level to 1
  6. COLOR - prints help message
  7. COPY* - recognizes bad switches . Sets errorlevel to 1 (including in %COPYCMD%)
  8. DATE - no
  9. DEL* - recognizes bad switches. Sets errorlevel to 1
  10. DIR* - recognizes bad switches. Sets errorlevel to 1 (incuding in %DIRCMD%)
  11. DPATH - does not recognize bad switches - take them as an argument
  12. ECHO - does not recognize bad switches - take them as an argument
  13. ENDLOCAL - no
  14. ERASE* - same as del
  15. EXIT - no .Tries to parse the arguments as number and this gives 0
  16. FOR - detects only the bad syntax
  17. FTYPE - get bad switches as arguments.
  18. GOTO - no.Tries to find a label
  19. IF - no. Detects only the bad syntax
  20. KEYS* - yes.Sets errorlevel to 1
  21. MD/MKDIR(*) - not sure.Sets errorlevel to 1 and prints error - but rather tries to parse bad switches as a path
  22. MKLINK* - yes.Sets errorlevel to 1
  23. MOVE(*) - same as MD
  24. PATH - no.same as DPATH.
  25. PAUSE - no. same as break
  26. POPD* - yes.Sets errorlevel to 1 and prints error message.The only way to break the command is with a bad switch (anything different than /?)
  27. PROMPT - no.get bad switches as arguments.
  28. PUSHD* - yes.Sets errorlevel to 1 and prints error message (different that a not found path)
  29. REM - no
  30. REN/RENAME* - yes.Sets errorlevel to 1
  31. RD/RMDIR* - yes.Sets errorlevel to 1
  32. SET* - yes as long the switch is not in quotes
  33. SETLOCAL - no.But sets errorlevel to 1 on any bad arguments`
  34. SHIFT - same as SETLOCAL
  35. START* - yes.Sets errorlevel to 1
  36. TIME - same as DATE
  37. TITLE - no
  38. TYPE* - yes.Sets errorlevel to 1
  39. VER* - yes.Sets errorlevel to 1
  40. VERIFY* - yes.Sets errorlevel to 1 (message is different than the wrong arguments)
  41. VOL* - yes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement