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

Michael Li mli at deform.com
Tue Mar 21 18:33:29 CET 2006


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.



More information about the Python-win32 mailing list