0
Answer

How can i copy file with administrator user and password

Feroz Khan

Feroz Khan

9y
517
1
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);