C# copy file to another directory using other domain/username/password
        Posted  
        
            by Cedric
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Cedric
        
        
        
        Published on 2010-04-30T13:47:30Z
        Indexed on 
            2010/04/30
            13:57 UTC
        
        
        Read the original article
        Hit count: 300
        
Hello, In c# 2008, I'm trying to copy a file to a destination path (for example \newserver\destinationFolder), that can be in another domain or using a different username/password than the current user. How can I specify these new network credentials before doing the File.Copy(...) ?
Thank you!
© Stack Overflow or respective owner