Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 11th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to enter multiple varibles into a single batch command
  2. dir c: /s /b /a | findstr /c:"my file" /c:"other" /c:"other 2" ...
  3.        
  4. for /R c: %i in ("my file" "other" "other2") do @echo %i
  5.        
  6. for %i in ("my file" "second file") do dir c: /s /b /a | find %i