find named files, sending to TYPE

April 9, 2009 at 09:53:22
Specs: Windows 2000 sp4
Hi Guys, quick question. I have this in a .bat:

for /f %%a in ('dir /S /b "*urchin*.js"') do type "%%a"

-But its only capturing 'C:\Documents' (basically up to the first ' ' space) and sending to TYPE, resulting in an obvious error:

' type "C:\Documents" the system cannot find the file specified'

-any ideas how to get %%a to capture the whole path/filename?


See More: find named files, sending to TYPE

Report •


#1
April 9, 2009 at 10:02:16
for /f "tokens=* delims=" %%a in (

blabla


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
April 9, 2009 at 10:43:47
Man, I cannot believe I made a screw up like that. damn FORs...thanks for your time dude its perfect

Report •

Related Solutions


Ask Question