Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .