I am having a folder on my *C:* drive Check & Fill. Check & Fill folder contains a file v.txt which contains version name. How can I open this file using BAT programming to get the version name?
SET "versionfolder=C:\Check ^& Fill\"
SET "filename=%versionfolder%v.txt"
For /f "skip=1 delims== tokens=2*" in ('find "ver" "%filename%"') do (
SET VersionName=%%i
)
Echo %VersionName%
File not found error is coming in the FOR statement.