From a batch file I want to extract the number 653456 from the following string:
653456
C:\\Users\\testing\\AppData\\Local\\Test\\abc123\\643456\\VSALB
This uses a helper batch file called repl.bat from - https://www.dropbox.com/s/qidqwztmetbvklt/repl.bat
repl.bat
@echo off set "string=C:\Users\testing\AppData\Local\Test\abc123\643456\VSALBT81_COM" echo "%string%"|repl ".*\\([0-9]*)\\.*" "$1"