1.

Solve : Exporting / Importing File names from https to Excel / Word?

Answer»

Quote from: foxidrive on November 16, 2012, 07:34:33 AM

So you take you bat and ball and go home rather than work *with* the people that are SOLVING your problem - for free.

Sir, I think I said I'm sorry and immensely thankful:)This will only work if all the files are .wav files.

EDITED: to ADD a delims section

Code: [Select]@echo off
del "output file.txt" 2>nul
for /f "delims=" %%a in (listofserialnumbers.txt) do (
for /f "delims=." %%b in ('find "-%%a-" ^< "list of files.txt"') do (
>>"output file.txt" echo %%b.wav
)
)Quote from: foxidrive on November 16, 2012, 07:54:53 AM
This will only work if all the files are .wav files.

EDITED: to add a delims section

Code: [Select]@echo off
del "output file.txt" 2>nul
for /f "delims=" %%a in (listofserialnumbers.txt) do (
for /f "delims=." %%b in ('find "-%%a-" ^< "list of files.txt"') do (
>>"output file.txt" echo %%b.wav
)
)

It definately did. Thanks again!


Discussion

No Comment Found