saving to virtual path

  • Thread starter Thread starter bombdrop
  • Start date Start date
B

bombdrop

trying to save a file to a virtual path

Code:
StreamWriter sw = new
StreamWriter(@"\vm-extranet\c$\Inetpub\wwwroot\eclaim\Eclaim.csv");

get error can not find path, any one know what i need to do?
 
bombdrop,
try adding an additional backslash before the machine name, e.g.:

StreamWriter(@"\\vm-extranet\c$\Inetpub\wwwroot\eclaim\Eclaim.csv");

Peter
 
Back
Top