Advertisement
hiro1357

wc.bat

Apr 27th, 2015
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.18 KB | None | 0 0
  1. @echo off
  2. if {%1} equ {} (
  3. set /p inputstr=
  4. echo %inputstr% |find /v /c ""
  5. set inputstr=
  6. ) else if {%1} equ {-l} (
  7. type %2 |find /v /c ""
  8. ) else (
  9. echo usage: wc [-l] filename
  10. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement