PoshCode Logo PowerShell Code Repository

EchoTest.cmd by Joel Bennett 17 months ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/2110"></script>download | new post

A DOS cmd script to show how your arguments look to “native” console apps

  1. @Echo 00: %0
  2. @Echo 01: %1
  3. @Echo 02: %2
  4. @Echo 03: %3
  5. @Echo 04: %4
  6. @Echo 05: %5
  7. @Echo 06: %6
  8. @Echo 07: %7
  9. @Echo 08: %8
  10. @Echo 09: %9
  11.  
  12. @Echo All together, it looked like this to DOS:
  13. @Echo %0 %*

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me