I want to do a command line like:

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

  • I edited you question, you can revert the changes if you don't like the changes or edit it again yourself. – Baarn Jun 17 '12 at 13:47

You should be able to put the path in quotes.

' "c:\spaces spaces\filever.exe" /A /D "D:\Spaces Other\a.dll" '

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.