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

Tom_RobbinsMilne at swissre.com Tom_RobbinsMilne at swissre.com
Tue Mar 21 19:37:37 CET 2006


Michael,

If you just need to deal with the path to the executable, perhaps 
os.path.normpath() is what you're looking for.

Regards,
Tom



Michael Li <mli at deform.com> 

Sent by: python-win32-bounces+tom_robbinsmilne=swissre.com at python.org
03/21/2006 12:33 PM




To
python-win32 at python.org
cc

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






Hi, all

I want to run a command remotely, but I have to know
the native file path on the remote computer from client
computer. Here is the details:

  ------------------------------  ---------------------------
  |                            |  |                         |
  |       computer A           |  |    computer B           |
  |                            |  |                         |
  | C:\shared\database\test.DB |  |  W:\database\test.DB    |
  |                            |  |                         |
  |   python server            |  |    client               |
  |                            |  |                         |
  |                            |  |                         |
  -----------------------------   ---------------------------
               /|\                           /|\
                |                             |
                |-----------------------------|

 From computer B, I send a command to computer A.
On computer A, python.exe is running 24X7 as a service.
When the pyhton server receives the command, it will go into
folder C:\shared\database and lunch another program.
Now I have to input native path on computer B, and pass
the native file path as an argument with the command and send together
to computer A. Then the python server knows where to go.
I am wondering that is it possible to know the native file path of
computer A on computer B ?
If possible, is there anyone point me a direction how to do it?
This may not be a 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 otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipients, please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.

_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32






This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060321/3d89ee62/attachment.html 


More information about the Python-win32 mailing list