How to copy file between two windows machine using python

496 views Asked by At

I have a task in hand where I need to copy some files from computer B to Computer A. The script should be run from computer A

Details|

Computer A- windows 7

Computer B - windows 7

What i did ?

I used subprocess module to generate a command prompt and run simple copy command there.

 copy   \\computerB\users\abc.text c:\ComputerA\Test

however this method is not much successful and gives some random logon error.

Note

No third party software is being used,For communication between two machines , i am using psexec module.

would prefer FtP server only if this is the only option left

0

There are 0 answers