While I don't know how to do it in a platform independent way, WSH appears
to have all the net functions you'd need (I've only looked at Vista....but I
assume Xp is the same).

http://en.wikipedia.org/wiki/Windows_Script_Host

If you find python bindings for WSH, let us know (or if you make some with
SWIG: www.swig.org)

     --Michael

-- 
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/

On 10/10/07, Kirk Vander Meulen <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'd like to write a script that limits internet access to certain hours of
> the day.  This seems like it should be simple but I'm not very experienced
> with any programming that involves networking.  Can someone point me in the
> right direction on this- I'm sure I can figure out how to use a calendar
> object or whatever to trigger daily events, but what's the best way to
> block/unblock networking?  I'm running xp (probably vista soon) on the
> computer I want to do this with.  Thanks in advance,
>
> Kirk
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to