Question: I'm trying to run a simple batch file.

```
for /f %%a IN ('dir /b /s "%~dp0\EnsembleIndependant\*.mis"') DO (ECHO %%a >> ResultatVorace.txt & CALL vorace.exe -f %%a >> ResultatVorace.txt)

```

this only works if there is no space in the path of the batch file.

the batch is in:

C:\Users\Rafael\Documents\Visual Studio 2012\Projects\vorace\Release\vorace.exe

the files I want to loop through are in:

C:\Users\Rafael\Documents\Visual Studio 2012\Projects\vorace\Release\EnsembleIndependant

can anyone help me.

thanks.

thank you guys for the suggestions. 
for /f "delims=" solved my problem.

Answer: 
```
for /f "delims=" %%a IN ('dir /b /s "%~dp0EnsembleIndependant\*.mis"') DO (ECHO %%a >> ResultatVorace.txt & CALL vorace.exe -f %%a >> ResultatVorace.txt)

```

`%~dp0` has already a backspace at the end.
FOR /F uses as standard delimiters `space` and `tab`, to avoid this you need to add the options.

```
for /f "delims=" %%a IN ('dir /b /s "%~dp0\EnsembleIndependant\*.mis"') DO (ECHO %%a >> ResultatVorace.txt & CALL vorace.exe -f %%a >> ResultatVorace.txt)

```