make a batch file that type text in website.

September 28, 2011 at 16:21:36
Specs: Windows 7
make a batch file that type text in website.
i want to make batch file which need to a open a website and fill text fields automatically with given data.

See More: make a batch file that type text in website.

Report •

#1
September 30, 2011 at 23:33:53
Rahul
It does not seems simple. You need to have access to website with ftp authentication. I once tried same . I wanted to update a file on my website that will always have the lastesd WAN IP of my network ( a sort of synamic dns updater ).

You will have to look in for command for ftp. For me ( 8 years back ) it was something like this : I used wget to get the latest wanip and then copied it to www

@echo off
setlocal
set URL=http://checkip.dyndns.org/index.html
:: *** The path to wget, if necessary (including the trailing backslash):
set wgetPath=c:\Progra~1\Wget\bin\

set TempFile=%~dpn0.html
if exist "%TempFile%" del "%TempFile%"
:: *** Retrieve the html document with the current IP address:
"%wgetPath%wget.exe" %URL% -O "%TempFile%"
:: *** Extract the current IP; this relies strongly on the current format of the source:
for /f "tokens=13 delims=<>: " %%a in ('type "%TempFile%"') do set WanIP=%%a
cls
echo Current WanIP: [%WanIP%]
copy wanip.html wanip.htm
ftp -s:upload
cls

Vishal
http://www.floppytousb.net


Report •
Related Solutions


Ask Question