Copy file from a computer not in the domain

  • Thread starter Thread starter karl
  • Start date Start date
K

karl

I have a vendor PC on our network that is not part of our domain. I
need to kick off a daily process that can copy a file from that
machine to our domain. The machine running the process will part of
our domain.

How can I specify the user credentials for the machine that is not a
domain member for use in the file copy operation? I have the local
administrator account information I just need a way to specifiy it.

Thanks
Karl
 
I have a vendor PC on our network that is not part of our domain. I
need to kick off a daily process that can copy a file from that
machine to our domain. The machine running the process will part of
our domain.

How can I specify the user credentials for the machine that is not a
domain member for use in the file copy operation? I have the local
administrator account information I just need a way to specifiy it.

Thanks
Karl

Karl,
Without being sure about domains, with this code i'm able to copy file
from a computer which is in my WORKGROUP on my LAN:

My.Computer.Network.DownloadFile("\\<computer>\folder\file.exe", "c:
\<file.exe>, <username>, <password>, True, 10000, False)

In the code above, you'll see via IntelliSense that "True" is for
ShowUI notification and "False" is for overwrite permission depends on
your taste.

Use UploadFile to send data from your computer to remote computer on
your LAN with the proper credentials as described above.

Regards,

Onur Güzel
 
Back
Top