Re: [python-win32] FTP Task Schedule in Python

2008-03-25 Thread Tim Golden
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

Re: [python-win32] FTP Task Schedule in Python

2008-03-25 Thread Rickey, Kyle W
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

Re: [python-win32] wmi query.

2008-03-25 Thread Tim Golden
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: code import wmi c = wmi.WMI () for service in c.Win32_Service (state=Stopped): print c.Caption, c.Status /code Sorry.

Re: [python-win32] FTP Task Schedule in Python

2008-03-25 Thread Vernon Cole
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,