Copy files to shared drive on remote windows server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kavitha bhasker
    New Member
    • Apr 2007
    • 1

    #1

    Copy files to shared drive on remote windows server

    Hi

    Iam trying to copy some files from 1 server to a shared folder on another remote windows server with the following command:

    os.system("copy C:\1.txt \\IPADDRESS\Pat h"),

    but this does not work. any help will be appreciated.

    Can os.system be used on windows ? Will I need to the WNetAddConnecti on2 prior to this ?

    Thanks,
    Kavitha
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    Originally posted by kavitha bhasker
    Hi

    Iam trying to copy some files from 1 server to a shared folder on another remote windows server with the following command:

    os.system("copy C:\1.txt \\IPADDRESS\Pat h"),

    but this does not work. any help will be appreciated.

    Can os.system be used on windows ? Will I need to the WNetAddConnecti on2 prior to this ?

    Thanks,
    Kavitha
    yes os.system also works on windows. post the errors that you have. don't just say it don't work. and also any code that you have so far. this will help us to help you.

    Comment

    Working...