Feroz Khan

Feroz Khan

  • NA
  • 63
  • 16.3k

How can i copy file with administrator user and password

Jun 1 2015 1:21 PM
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);