hello im having an issue with spaces in the %%a attribute inside a Batch FOR.
if i have some files in a folder
yoda jedi.tif
jaba king.tif
solo smug.tif
the following code,
@echo off & setlocal
for /f %%a IN ('dir /b /s "R:\Scans\Epson_v550\*.tif"') do (
echo This was received: %%a
)
results in output of:
This was received: yoda
This was received: jaba
This was received: solo
How can i restructure it so %%a includes the full file name with spaces from %%a?
id like this result:
This was received: yoda jedi.tif
This was received: jaba king.tif
This was received: solo smug.tif
but even when i try,
echo This was received: "%%a"
i still only get back the word before the space. its like %%a is being lopped off at the first space during assignment. Please help?