[python-win32] how to only accept local computer requests

2006-05-08 Thread Michael Li
file does not exist, it accepts requests from any computers. Is there any easy way to do it ? Best regards. Michael Li == This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be

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

2006-04-26 Thread Michael Li
you have any idea to get local path in linux from Windows' side ? Mark, your Win32 extension is very useful and easy to use, you are genius, thank you thank you very very much. Best regards. Michael Li Mark Hammond wrote: >>One piece of the program is to check a file exist or n

Re: [python-win32] how to know the native file path of computer A

2006-04-26 Thread Michael Li
server(remote) side, I use win32net.NetShareEnum to compare "shared" and get the local path. I still have the same problem in a Windows/Linux mixed environment. Do you have any idea to get local path in linux from Windows' side ? Best regards. Michael Li Roger Upole wrote: > Mic

[python-win32] wrong results in service running mode

2006-04-19 Thread Michael Li
omputer 1 in service mode, nRetCode always is False(0), if the python program runs on DOS window of computer 1, nRetCode always is True(1). How do I solve the problem ? What else function I should use ? I am using python2.3. best regards. Michael li == This email message and any att

Re: [python-win32] Runnin Python app as service with separateconsole

2006-04-14 Thread Michael Li
Hi, Mark Thank you very much. Now my python server works perfectly by adding signal handler to intercept CTRL_LOGOFF_EVENT. Best regards. Michael Li Michael Li wrote: > Hi, Mark > > Thank you very much. > I will try it. > > Best regards. > Michael Li > > Mar

Re: [python-win32] Runnin Python app as service with separateconsole

2006-04-11 Thread Michael Li
Hi, Mark Thank you very much. See my answers below. Mark Hammond wrote: >> "install_3d_app_service.cpp" is a program to install >> sftc3win.exe(sftc_3d_app_service.cpp) >> into a Windows' service. Inside sftc_3d_app_service.cpp, it will spawn >> "python". >> After reboot the machine, no p

Re: [python-win32] Runnin Python app as service with separate console

2006-04-10 Thread Michael Li
point me a direction how to solve the problem? Or I am in the wrong direction, I have to use the same way as you described ? One thing I want to mention is that my python scripts work at linux too, and I want to keep it run at the DOS window for easier debugging. I am using python2.3. Best

Re: [python-win32] Runnin Python app as service with separate console

2006-04-06 Thread Michael Li
> Although it is not obvious from Twisted documentation it is trivial to > run an application as a windows service as long as you use *.tac files > to build it. Can you share your code ? I also have an application using Twisted, but I got problems to run as a service. Thank you very much.

Re: [python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
actually runs on computer A, I need to know the real file path C:\shared\database on computer A. The folder itself is not the fixed, it might be D:\aaa, also the mapped drive path is not fixed, it might be X:\bbb. Michael Li wrote: > Hi, > I got bunch of reply, thank you very much. > But the

Re: [python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
:" does not exist on computer A, "W:" is on computer B. Right now, szFolder comes from computer B as an argument inputed on computer B, I want to make szFolder auto-decide if possible. Any ideas ? Best regards. Michael Li Michael Li wrote: > Hi, all > > I want to run a

[python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
python question, anyway I asked here, any C/C++/C# programs are ok. Thank you very much. Best regards. Michael Li == This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or

[python-win32] how to open a file with associated application ?

2006-03-02 Thread Michael Li
point me a direction ? I believe that I have to write a python script to register something first. Is there any workable scripts I can borrow ? Best regards. Michael Li == This email message and any attachments are for the sole use of the intended recipients and may contain propriet

[python-win32] GUI analyzer of log file

2005-06-21 Thread Michael Li
4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" If there is no such tool, I am going to use python/Tk, is this a good idea ? Can someone point me a direction ? Best regards, Michael Li ___ Python-win32 mailing list Python-win32@pyt

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-05-09 Thread Michael Li
Steve Holden wrote: > Michael Li wrote: > >> Hi, Mark >> >> Thank you very much. >> It works, but only shows shared folders, not all the folders, >> is it possible to show all folders ? >> > [...] > Assuming you don't have permission to acce

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-04-28 Thread Michael Li
Hi, Mark Thank you very much. It works, but only shows shared folders, not all the folders, is it possible to show all folders ? Mark Hammond wrote: Hi, Is there an easy way to browse folders at another computer ? Basically it's the same as C:\Python24\Lib\site-packages\win32comext\shell\demos\brow

[python-win32] how to browse another computer's folder tree structure ?

2005-04-22 Thread Michael Li
the folders on computer B Best regards. Michael Li ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32