vb.net code to copy file from remote computer
-
i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
-
i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
-
i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
You're going to need to know exactly how and why Windows networking works in order to do stuff like this. You're getting this error because the account your code is running under (yours!) does not have write permissions to the D$ share on the target machine and/or the softwares folder under it. This can be because the machines are in networked in workgroup, where each machine has it's own list of accounts it trusts. Or, it could be, even though the machines are part of a domain, your account doesn't have permissions to that share/folder.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008