Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
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

1 Answer 1

You should be able to put the path in quotes.

' "c:\spaces spaces\filever.exe" /A /D "D:\Spaces Other\a.dll" '
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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