I have many similar entries in a text file;
8a1a21d54d7fc7e810785202784ecd87|0|C:\Documents and
Settings\username\Application Data\Orbit\flink\4Echrome-win32.lnk|2009-09-09
00:33:28|0|http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/25625/chrome-win32.zip
How do I extract only this part
"http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/25625/chrome-win32.zip"
to another text file ?
tia
--
Dual Boot WinXP Pro SP3 with Windows 7
If the URL is always at the end you can do this: (MS-style BASIC use
for example)
OPEN "MYFILE.TXT" FOR INPUT AS #1 ' Change MYFILE.TXT to the
' actual name of your input file
OPEN "URLS.TXT" FOR OUTPUT AS #2
WHILE NOT EOF(1)
LINE INPUT A$
POSITION=INSTR(UCASE$(A$), "HTTP:")
IF POSITION > 0 THEN
PRINT #2, MID$(A$, POSITION)
END IF
WEND
CLOSE
END
This will read a line at a time into A$. Then
it will check to see if the string HTTP: is
present (the search is case insensitive)
If it is, the URL is printed to the file URLS.TXT.
When done, the file URLS.TXT will have the list
of URLs (of course!)
Tom Lake
"Tom Lake" <toml_...@hotmail.com> wrote in message
news:BD6A9379-B3E7-438C...@microsoft.com...
thanks
but I do not know what is MS-style BASIC
I got the following from another newsgroup and it works
at a command prompt enter the following
FOR /F "tokens=6 delims=^|" %I IN (input.txt) DO @ECHO.%I >> output.txt
MS style BASIC is the BASIC language as implemented
in Microsoft versions of BASIC.
>
>
> I got the following from another newsgroup and it works
> at a command prompt enter the following
> FOR /F "tokens=6 delims=^|" %I IN (input.txt) DO @ECHO.%I >> output.txt
>
>
Yes but the newsgroup is for the BASIC language so I gave you a
BASIC solution!
Tom Lake