Try this:
for /F "tokens=1,3 delims=. " %%a in ("%string%") do (
echo %%a
echo %%b
)
that is, take the first and third tokens delimited by space or point…
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Batch file to delete files older than N days
- How to have multiple colors in a Windows batch file?
- How do I measure execution time of a command on the Windows command line?
- Windows Batch Variables Won’t Set
- ‘Pretty print’ windows %PATH% variable – how to split on ‘;’ in CMD shell
- Where is “START” searching for executables?
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- windows batch SET inside IF not working
- Stop and Start a service via batch or cmd file?
- Batch files: List all files in a directory with relative paths
- How to run a PowerShell script within a Windows batch file
- Windows batch script to parse CSV file and output a text file
- Using parameters in batch files at Windows command line
- Convert a small PS script into a long line in a .BATch file
- What is the easiest way to reset ERRORLEVEL to zero?
- How to count no of lines in text file and store the value into a variable using batch script?
- How to test if a path is a file or directory in Windows batch file?
- How to change Screen buffer size in Windows Command Prompt from batch script
- Delete all files and folders in a directory
- windows cmd: problems with for /f with a quoted command with quoted parameters
- Remove trailing spaces from a file using Windows batch?
- How to read input from console in a batch file?
- Batch goto loses errorlevel
- I need to match or replace an asterisk * in a batch environmental variable using only native Windows commands. Is this possible?
- Escape percent signs in given variables
- Out of a git console: how do I execute a batch file and then return to git console?
- UTF-16 to UTF-8 conversion (for scripting in Windows)