set cmd="dir /b "20??????" | find /c "2" "
FOR /F "tokens=*" %%i IN (' %cmd% ') DO SET X=%%i
More Related Contents:
- edit 2500 text files to add three decimal places for integer number and decimal number where you can find after @x*
- Command Prompt Separation of text by Character [closed]
- What are the undocumented features and limitations of the Windows FINDSTR command?
- Why does delayed expansion fail when inside a piped block of code?
- Ignore percent sign in batch file
- How to call a batch file that is one level up from the current directory?
- Make an environment variable survive ENDLOCAL
- Error: “is not recognized as an internal or external command, operable program or batch file”
- How to read file contents into a variable in a batch file?
- How to receive even the strangest command line parameters?
- Adding the current directory to Windows path permanently
- How do I write a Windows batch script to copy the newest file from a directory?
- How can a batch file run a program and set the position and size of the window?
- How can I get the value of a registry key from within a batch script?
- How to get and display yesterday date?
- How to search and replace a string that have an equal-to sign “=” inside
- Arithmetic operations with HH:MM:SS times in batch file
- How to Copy (and increment) Multiple Instances of a File Using Batch File
- Copy a list (txt) of files
- Multiple choices menu on batch file?
- Specify the size of command prompt when executing a batch file
- Get java version from batch file
- Save and Load .bat game
- How can I add greater than and less than into a batch file variable
- Batch file to delete files older than N hours or minutes
- Less than or equal to
- My Batch File keeps looping, but why?
- Batch file for PuTTY/PSFTP file transfer automation
- Call a subroutine in a batch from another batch file
- How do I create a batch file timer to execute / call another batch throughout the day