Page 1 of 1

Saving source of website in a txt file

Posted: 24 Mar 2009 11:39
by cc2
I want to make a batch that saves the source of a website in a text file, i know how to save stuff in a text file though. I have tried:

Code: Select all

@echo off
title Source to txt by cc2
cls
echo The source will be placed in the same folder as this batch file is in.
set input=
set /p input=Enter the website you wish to get source from:
start firefox "%input%" /h    <- that opens the website hidden
read %input% as %source%      <- that wasn't working, was suppost to make website to %source%
echo %source% > source.txt


These to lines needs to be replaced to something working. Any help?

Thanks!

Posted: 25 Mar 2009 10:01
by avery_larry
maybe 3rd part wget.exe could do what you want (google it to download)? Otherwise not familiar with what you might be able to do with firefox on a command line -- sorry.