|
Answer» Hi,
I want to do a command line iike:
for /F "tokens=4" %%F in ('c:\spaces spaces\filever.exe /A /D D:\Spaces Other\a.dll') do ( set VERSION=%%F )
I ENCOUNTER a spaces PROBLEM. How can I write that command with a paths with spaces.
Thanks, Ido Enable extensions if not already enabled, and then you can use alternative QUOTING STYLE with backquotes - NOTE carefully ALL back and double quotes in script below.
c:\>type backtest.bat @echo off setlocal ENABLEEXTENSIONS for /f "usebackq tokens=4" %%F in (`""C:\PATH With Spaces\filever.exe" /A /D "D:\Another Path With Spaces\ipwssl6.dll""`) do (set version=%%F) echo Version is: %version%
c:\>backtest.bat Version is: 6.2.2509.0 c:\>
|