corz.org front page. welcome! cor's blog, aka 'corzblog'. I write stuff here.. downloads of all shapes and sizes, documents, secret chasms, you name it.. developing sites, software, stuff.. updates generally get posted here. music is everywhere, sometimes I pin it down.. soul-candy, captured things you can look at.. 'Mathematics For Women' copyright Cor 1994 ;o)
the power to serve, at home or anywhere. webmasters tricks, tips, tools and resources. the devil's work, or a capable multimedia desktop, you decide..
information and search
contact page for corz.org, ways to get $hit to me.. get a print friendly version of this page, probably.. Put YOUR money where MY mouth is!
 
corz.org text viewer..
[currently viewing: /public/scripts/c/uptime/ut.bat - raw]
 
: ampsig uptime update batch file
@echo off

: prefs..

:the directory where uptime.exe and ut.bat live..
set uTpath=C:\unix\bin\

:where on the web is your ampsig..
set url=http://domain.com/path/to/amp.php

:security..
set username=USERNAME
set password=PASSWORD

: end prefs


:call uptime..
%uTpath%uptime.exe

:extra variables to POST. edit as required..
echo -d "status=winamp starting up" >> C:\unix\bin\uptime.nfo
echo -d "title=no information yet" >> C:\unix\bin\uptime.nfo
echo -d "album=it's about to be decided" >> C:\unix\bin\uptime.nfo
echo -d "user=%username%" >> C:\unix\bin\uptime.nfo
echo -d "pass=%password%" >> C:\unix\bin\uptime.nfo

:finally, we call cURL, specifying our new configuration file..
%uTpath%curl.exe -K %uTpath%uptime.nfo %url%