0
Reply

How can i copy file with administrator user and password

Feroz Khan

Feroz Khan

Jun 1 2015 1:21 PM
497
How can i copy file with administrator user and password in network computer...
 
i want to type administrator user and password in textbox... 
 
so please tell me how can i do this.. i am using below code.. error is showing access is denaid...
how can i type administrator user and password.. 
 
string filepath = @"C:\dts\image.jpg";
string savepath = @"\\"+ipaddress_txt.Text+"\\c$\\Program Files\\IBT\\image.jpg";

File.Copy(filepath,savepath, true);