|
Answer» resolved.The type command expects [drive:][path]filename parameters not internet addresses. Batch coding is not designed for the Web, but you have alternatives on your SYSTEM that will scrape and print the web page data:
Code: [Select] Set objIE = CreateObject("InternetExplorer.Application") objIE.Navigate("HTTP://batchmedia.0moola.com/text.txt") Do Until objIE.ReadyState = 4 WScript.Sleep 100 Loop objIE.document.parentwindow.clipboardData.SetData "text", objIE.Document.Body.InnerText WScript.Echo objIE.Document.ParentWindow.ClipboardData.GetData("text") objIE.Quit
Save the script with a vbs extension and RUN from the command prompt as CSCRIPT scriptname.vbs
Good luck. Quote from: SIDEWINDER on June 07, 2008, 07:51:32 AM The type command expects [drive:][path]filename parameters not internet addresses. Batch coding is not designed for the Web, but you have alternatives on your system that will scrape and print the web page data:
Code: [Select] Set objIE = CreateObject("InternetExplorer.Application") objIE.Navigate("http://batchmedia.0moola.com/text.txt") Do Until objIE.ReadyState = 4 WScript.Sleep 100 Loop objIE.document.parentwindow.clipboardData.SetData "text", objIE.Document.Body.InnerText WScript.Echo objIE.Document.ParentWindow.ClipboardData.GetData("text") objIE.Quit
Save the script with a vbs extension and run from the command prompt as cscript scriptname.vbs
Good luck.
amazing works like a dream thanks very much
|