I just find out how to use commands with pipes in it, here’s my command (that extracts the head revision of an svn repo) :
SET SVN_INFO_CMD=svn info http://mySvnRepo/MyProjects
FOR /f "tokens=1 delims=" %%i IN ('%SVN_INFO_CMD% ^| find "Revision"') DO echo %%i
More Related Contents:
- Batch file comparison of variable with constant fails
- What does %~dp0 mean, and how does it work?
- How to run multiple .BAT files within a .BAT file
- Time is set incorrectly after midnight
- Why doesn’t this FINDSTR example with multiple literal search strings find a match?
- How Should I Set Default Python Version In Windows?
- How to read and print contents of text file line by line?
- (Windows batch) Goto within if block behaves very strangely
- What must be taken into account on executing a batch file as scheduled task?
- What does single-quoting do in Windows batch files?
- How to search and replace a string in environment variable PATH?
- Batch Command to catch all possible ping issues
- How can I check the size of a file in a Windows batch script?
- batch file – counting number of files in folder and storing in a variable
- Drag and drop batch file for multiple files?
- Batch / Find And Edit Lines in TXT file
- Waiting for parallel batch scripts
- Why does ‘Run as administrator’ change (sometimes) batch file’s current directory?
- Batch file to copy files from one folder to another folder
- batch echo pipe symbol causing unexpected behaviour
- Why are Danish characters not displayed as in text editor on executing batch file?
- How to split the filename from a full path in batch?
- CMD.EXE batch script to display last 10 lines from a txt file
- Simply compress 1 folder in batch with WinRAR command line?
- How can I escape an exclamation mark ! in cmd scripts?
- How do I make one particular line of a batch file a different color then the others?
- Bat file to delete files only when younger files are present
- Why is escaping exclamation marks not necessary in parameter of `for /F` or `for /R`?
- Batch runs manually but not in scheduled task
- Assigning newline character to a variable in a batch script