1.

Solve : Getting source (not of a converted batch file)?

Answer»

Is it possible to GET the source of a web page via BATCH? If not, how would I get around to doing it?well i don't THINK you can actually use batch to download\read from a webpage...or can you?

but i know that you can use a program CALLED "wget"
http://users.ugent.be/~bpuype/wget/

and you can use it in command line

wget [OPTION]... [URL]...

like Code: [Select]wget http://www.google.com/index.htmlthen you can just use type Code: [Select]type index.html
so...
Code: [Select]wget http://www.google.com/index.html
type index.html


pretty simpleno, you can't do it with just NT cmd batch.

1. use wget.exe as stated by batchfilebasics, i use it myself for daily routine
2. use vbscript, then access internet explorer object or create xmlhttp object and use get method (haven't try this one)



Discussion

No Comment Found