RE: edit text entries...
From: Tom Lavedas (tlavedas_at_hotmail.remove.com)
Date: 08/16/04
- Next message: Brendan: "Password changes on different domains"
- Previous message: Dave F.: "Sort a dictionary"
- In reply to: ghettocow: "edit text entries..."
- Next in thread: Jerold Schulman: "Re: edit text entries..."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Aug 2004 06:07:01 -0700
Here's one way I can think of ...
sPathSpec = "somefileNmae.ext"
With CreateObject("Scripting.FileSystemObject")
if .FileExists(sPathSpec) Then
sUrl = .Getfile(sPathspec).Path
Else
wsh.echo "File not found."
wsh.Quit
End if
End With
wsh.echo sURL
with CreateObject("InternetExplorer.Application")
.Navigate("file://" & sURL)
Do until .ReadyState = 4 : WScript.Sleep 100 : Loop
s = .document.body.innerText
End With ' IE
wsh.echo s
Tom Lavedas
===========
"ghettocow" wrote:
> I have a batch file that reads a text file and displays certain
> strings back using the 'findstr' command. Some strings that the batch
> returns contain HTML code. The string looks something like this:
>
> Important text1: >
> I was wondering if there is a way to create a vbs file to remove the
> HTML code from the text file. Any help will be appreciated ;)
>
>
> -ghettocow
- Next message: Brendan: "Password changes on different domains"
- Previous message: Dave F.: "Sort a dictionary"
- In reply to: ghettocow: "edit text entries..."
- Next in thread: Jerold Schulman: "Re: edit text entries..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|