Collect/Merge URL string from Korean I.E. Favourites ??
Posted: 01 Mar 2008 08:32
Hello,
I got this I.E. favourites from Korea: http://www.airfirst.ch/b2/Favorites.RAR
I would collect/merge all URL string from .url files (subdirectory too) to get (in URLs1.txt) this kind of result:
Only the domaine name (or full URL string).
The difficulty is due to Korean characters in .URL filename.
Do you have an idea to get this result?
Thanks in advance.
UrlCollector.CMD (located in favorites folder)
I got this I.E. favourites from Korea: http://www.airfirst.ch/b2/Favorites.RAR
I would collect/merge all URL string from .url files (subdirectory too) to get (in URLs1.txt) this kind of result:
Code: Select all
http://www.domaineX.com
http://www.domaineY.org
http://www.domaineZ.net
Only the domaine name (or full URL string).
The difficulty is due to Korean characters in .URL filename.
Do you have an idea to get this result?
Thanks in advance.
UrlCollector.CMD (located in favorites folder)
Code: Select all
@ECHO OFF
:A
SET m1=URLs1.txt
TYPE NUL>"%m1%"
(
FOR /f "USEBACKQ Tokens=1,2,* Delims=" %%f in (`DIR /b /s ^"*.*^"`) DO (
FindSTR /i /b /c:^"URL=^" ^"%%f^"
)
)>>"%m1%"
:B
SET m2=URLs2.txt
TYPE NUL>"%m2%"
(
FOR /f "Tokens=1,2,* Delims=:=" %%a in ('FINDSTR /i /b /c:^"URL=^" ^"*.url^"') DO (
ECHO.%%a
)
)>>"%m2%"
Pause&EXIT