The list is bar delimited. Each line contains a name and a Title, for example:
Code: Select all
A Name|The Title
Code: Select all
A Name - The Title- subtitle (html).rar
Is this possible?
Thanks.
Code: Select all
A Name|The Title
Code: Select all
A Name - The Title- subtitle (html).rar
Yes, that is possible!Vortex wrote:Is this possible?
Thanks.
Code: Select all
@echo off
:: SETTINGS
set FOLDER=c:\temp
set ES=c:\tools\everything\ES.exe
set INPUT=searchsrtings.txt
set OUTPUT=filelist.txt
::ACTION
(for /f "tokens=1,2 delims=|" %%x in (%INPUT%) DO "%ES%" -path "%FOLDER%" "%%x - %%y") >> "%OUTPUT%"
You need ES.exe, the command;line tool. I think tou tried it with Everything.exeVortex wrote:That fails with the error:
"Unable to open the list:C:\Users\-\Desktop\A Name - The Title is not a valid file list."
If that is all I misspelled, it's a good day! I make tons of typo's (but strange enough hardly any when writing code)You spelt searchstrings wrong by the way.
It repeats that for as many lines as are on the list."The system cannot find the path specified.
Press any key to continue . . ."
Code: Select all
"set FOLDER=c:\temp"
Code: Select all
A Name|The Title
Code: Select all
A Name - The Title.txt
"The system cannot find the path specified.
Press any key to continue . . ."
Code: Select all
The Name|The Title
A Name|A Title
This One|Doesn't Exist
Code: Select all
@echo off
:: SETTINGS
set FOLDER=c:\temp
set ES=c:\tools\everything\ES.exe
set INPUT=IN.txt
set OUTPUT=OUT.txt
::ACTION
(for /f "tokens=1,2 delims=|" %%x in (%INPUT%) DO "%ES%" -path "%FOLDER%" "%%x - %%y") > "%OUTPUT%"
Code: Select all
C:\temp\SEARCH HERE\The Name - The Title (blabla).txt
C:\temp\SEARCH HERE\A Name - A Title - some other text.txt
Code: Select all
(for /f "usebackq tokens=1,2 delims=|" %%x in ("%INPUT%") DO "%ES%" -path "%FOLDER%" "%%x - %%y") > "%OUTPUT%"
Code: Select all
C:\temp>set FOLDER=c:\temp
C:\temp>set ES=c:\tools\everything\ES.exe
C:\temp>set INPUT=IN.txt
C:\temp>set OUTPUT=OUT.txt
C:\temp>(for /F "tokens=1,2 delims=|" %x in (IN.txt) DO "c:\tools\everything\ES.
exe" -path "c:\temp" "%x - %y" ) 1>"OUT.txt"
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
C:\temp>pause
Press any key to continue . . .
Code: Select all
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "The Name - The Title"
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "A Name - A Title"
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "This One - Doesn't Exist"
Code: Select all
set ES=c:\tools\everything\ES.exe
Code: Select all
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "The Name - The Title"
C:\temp\search here\The Name - The Title (blabla).txt
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "A Name - A Title"
C:\temp\search here\A Name - A Title - some other text.txt
C:\temp>"c:\tools\everything\ES.exe" -path "c:\temp" "This One - Doesn't Exist"
And you're complaining about one typo *I* made ....Vortex wrote:Sorry, my bad, it was in "c:\tools\ES.exe"
No, of course not.OUT.txt still looks different to you results, or did you edit the other stuff out?
Code: Select all
@echo off
:: SETTINGS
set FOLDER=c:\temp
set ES=c:\tools\everything\ES.exe
set INPUT=IN.txt
set OUTPUT=OUT.txt
::ACTION
(for /f "usebackq tokens=1,2 delims=|" %%x in ("%INPUT%") DO "%ES%" -path "%FOLDER%" "%%x - %%y") > "%OUTPUT%"
pause