Me too. Sometimes I have had problems with running a Python script directly
from the task scheduler, so I usually use a small .bat file to start the
Python. I will often redirect standard output to a file for logging, then
use another Python script to Email the log to myself.
On Tue, Mar 25, 2008
Tim Golden wrote:
[... snip other examples ...]
> Even that is a slight optimisation. It usually costs little
> to pull back all the fields, so I generally write:
>
>
> import wmi
>
> c = wmi.WMI ()
> for service in c.Win32_Service (state="Stopped"):
>print c.Caption, c.Status
>
>
Sorr
I agree with Tim here. I set up a simple script to backup a few files,
then scheduled a task to run daily at 2am.
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden
Sent: Tuesday, March 25, 2008 4:29 AM
Cc: python-win32@python.org
Sub
K-Factory wrote:
> I need to automate a scheduled weekly task i.e. downloading a file from FTP.
> This is to be done on WINDOWS but I am unable to make any further
> development on this as I am stuck with the python scheduler itself. Can
> somebody help me with this, I just need a skeleton of code