Saving source of website in a txt file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
cc2
Posts: 2
Joined: 24 Mar 2009 11:28

Saving source of website in a txt file

#1 Post by cc2 » 24 Mar 2009 11:39

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!

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 25 Mar 2009 10:01

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.

Post Reply