Re: file backup in windows

2006-11-22 Thread k.i.n.g.
Hi, The following code has worked for me, I will continue from here to make this further userfriendly. More I would like to know how can i distribute my python code as self installer package. In the process of learning programming I would like take OutlookBackup.py as my first project and learn ac

Re: file backup in windows

2006-11-22 Thread Fredrik Lundh
"MC" wrote: > " are your friend. to be precise, list2cmdline is your friend. see discussion and examples here: http://effbot.org/pyfaq/why-can-t-raw-strings-r-strings-end-with-a-backslash.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: file backup in windows

2006-11-22 Thread MC
Hi! " are your friend. See, also: filepath = '"%HOMEPATH%\\LocalSettings\\Application Data\\Microsoft\\Outlook\\*"' and %USERPROFILE% %APPDATA% etc. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

RE: file backup in windows

2006-11-22 Thread Tim Golden
| I am sorry I am providing the code i used as it is. Being newbee to | programming I have tinkerd with various options i found on the net. Thanks. That makes it a lot easier [... snip ...] | source = outlook_path | #source = outlook_path +'\\*' | print source [...] | win32file.CopyFile (sourc

RE: file backup in windows

2006-11-22 Thread Tim Golden
| > | > import os, sys | > from win32com.shell import shell, shellcon | > | > local_app_data = shell.SHGetSpecialFolderPath (0, | > shellcon.CSIDL_LOCAL_APPDATA) | > outlook_path = os.path.join (local_app_data, "Microsoft", "Outlook") | > | > print outlook_path | > | > | | The above code was fin

Re: file backup in windows

2006-11-22 Thread k.i.n.g.
Hi , I am sorry I am providing the code i used as it is. Being newbee to programming I have tinkerd with various options i found on the net. start of the code --

Re: file backup in windows

2006-11-22 Thread Mikael Olofsson
k.i.n.g. wrote: > [snip code] > The above code was fine while printing, when I am trying to use this > (outlook_path) to use as source path it is giving file permission error > can you please clarify this Did you follow the link that Fredrik Lundh gave you? /MiO -- http://mail.python.org/mailman

Re: file backup in windows

2006-11-22 Thread k.i.n.g.
Thank You all for reply's so far > > import os, sys > from win32com.shell import shell, shellcon > > local_app_data = shell.SHGetSpecialFolderPath (0, > shellcon.CSIDL_LOCAL_APPDATA) > outlook_path = os.path.join (local_app_data, "Microsoft", "Outlook") > > print outlook_path > > The above code

RE: file backup in windows

2006-11-22 Thread Tim Golden
[... snip ...] | --- | how can i make the following code work, I have probelm with filepath | declaration. | --- | import os, shutil | filepath = ' C:\\Documents and Settings\\060577\\Local | Settings\\

Re: file backup in windows

2006-11-22 Thread John Machin
k.i.n.g. wrote: > Hi ALL, > > I am a newbee programmer and started of with python recently. I am > trying write a script which backups outlook (.pst ) files everytime I > shutdown my system. I have writtern following code after some findings > on net. My .pst file path is as follows > > " c:\docume

RE: file backup in windows

2006-11-22 Thread Tim Golden
| " c:\documents and settings\060577\Local Settings\Application | Data\Microsoft\Outlook " | where 060577 represents username. I want my script to | identigy the user | logged in and go to the resp outlook folder or should be able to read | outlook store directory path from registry and the copy t

Re: file backup in windows

2006-11-22 Thread Fredrik Lundh
k.i.n.g. wrote: > how can i make the following code work, I have probelm with filepath > declaration. http://effbot.org/pyfaq/tutor-i-need-help-im-getting-an-error-in-my-program-what-should-i-do -- http://mail.python.org/mailman/listinfo/python-list

file backup in windows

2006-11-22 Thread k.i.n.g.
Hi ALL, I am a newbee programmer and started of with python recently. I am trying write a script which backups outlook (.pst ) files everytime I shutdown my system. I have writtern following code after some findings on net. My .pst file path is as follows " c:\documents and settings\060577\Local