T1000
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 3/13/2007
-
Status: offline
|
HTML2TXT ?? Help!!!
Tuesday, March 13, 2007 8:26 AM
( permalink)
Hello, I am looking for a code . vbs that can turn me html to txt, witout <tag>. Can somebody help me??? Thank you very much !!!
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
RE: HTML2TXT ?? Help!!!
Tuesday, March 13, 2007 8:32 AM
( permalink)
Pretty sure there are command line utilities for this. Have you done any searching?
|
|
|
|
T1000
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 3/13/2007
-
Status: offline
|
RE: HTML2TXT ?? Help!!!
Tuesday, March 13, 2007 8:48 AM
( permalink)
Look for, but profit not to do what I need.. My codes are these:
getURL"un", "pw","http://yoursite.com/path/to/file.txt"
Sub getFTP(un,pw,url)
WScript.Echo url
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
WScript.Echo "********** start **************"
Call objHTTP.Open("GET", url, False,un,pw)
objHTTP.Send
WScript.Echo(objHTTP.ResponseText)
WScript.Echo "********** End **************"
'objHTTP = Nothing
End Sub
Set objArgs = WScript.Arguments
url = objArgs(0)
'imagefile = objArgs(1)
'DestFolder = objArgs(2)With CreateObject("MSXML2.XMLHTTP")
.open "GET", url, False
.send
a = .ResponseBody
End With'With CreateObject("ADODB.Stream")
' .Type = 1 'adTypeBinary
' .Mode = 3 'adModeReadWrite
' .Open
' .Write a
' .SaveToFile DestFolder & ImageFile, 2 'adSaveCreateOverwrite
' .Close
'End With
Thanks for your answer ebgreen!
<message edited by Country73 on Wednesday, March 14, 2007 12:58 AM>
|
|
|
|