Re: [python-win32] wrong results in service running mode

2006-04-26 Thread Michael Li
Hi, Mark Thank you very much for your reply. Now I understand that Windows' "SYSTEM" account is not the same as Unix's "root" account. Finally I solved my problems based on Roger Upole's suggestions. Here is what I did: in client side, I use WNetEnumResource to get mapped share name, M:->\\serv

Re: [python-win32] wrong results in service running mode

2006-04-19 Thread Mark Hammond
> One piece of the program is to check a file exist or not as follows: > > szNormPath= os.path.normpath(strFileName) > nRetCode = os.access(szNormPath, os.F_OK) > # nRetCode = os.path.exists(szNormPath) > > When the file path is C:\shared\t.txt, no problem. > When the pat

[python-win32] wrong results in service running mode

2006-04-19 Thread Michael Li
Hi, I have a python program running 24x7. One piece of the program is to check a file exist or not as follows: szNormPath= os.path.normpath(strFileName) nRetCode = os.access(szNormPath, os.F_OK) # nRetCode = os.path.exists(szNormPath) When the file path is C:\shared\t