Computing.Net > Forums > Programming > find named files, sending to TYPE

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

find named files, sending to TYPE

Reply to Message Icon

Name: canarybarf
Date: April 9, 2009 at 09:53:22 Pacific
OS: Windows 2000 sp4
Subcategory: Batch
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: April 9, 2009 at 10:02:16 Pacific
Reply:

for /f "tokens=* delims=" %%a in (

blabla


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

M2


0

Response Number 2
Name: canarybarf
Date: April 9, 2009 at 10:43:47 Pacific
Reply:

Man, I cannot believe I made a screw up like that. damn FORs...thanks for your time dude its perfect


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


delete a line and data tr... Session array variable



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: find named files, sending to TYPE

find newest file then send to ftp www.computing.net/answers/programming/find-newest-file-then-send-to-ftp/18520.html

Adding copy to c:\files on send to menu www.computing.net/answers/programming/adding-copy-to-cfiles-on-send-to-menu/261.html

Batch file: Adding to file names www.computing.net/answers/programming/batch-file-adding-to-file-names/9098.html