I am trying to copy a file to a folder on a server through C# application. If I have already had the folder open, it doesn't need the username and password to connect to it through the program, otherwise the program gives me error and says it cannot have access to the folder.
I am using 'directoryinfo' and 'file.copy'.
Any advise will be appreciated.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!