Hello Matías,
use @ sign before path: ruta = @"\\hpr2k01\XML-Menu"
BTW, I can't see the error besides this one. It works fine. Check your permisions,
and try to create file in network folder manually
M> Hi, the code is:
M>
M> ruta = "\\hpr2k01\XML-Menu"
M>
M> string direct = ruta + "/" +
M> String.Format("{0}_{1}",DateTime.Now.Minute.ToString(),DateTime.Now.M
M> illisecond.ToString()); string FILENAME = direct + "/" +
M> String.Format("{0}_{1}.txt",DateTime.Now.Minute.ToString(),DateTime.N
M> ow.Second.ToString());
M>
M> if(!Directory.Exists(direct))
M>
M> Directory.CreateDirectory(direct);
M>
M> //Get a StreamReader class that can be used to read the file
M>
M> StreamWriter objStreamWriter;
M>
M> objStreamWriter = File.AppendText(FILENAME);
M>
M> //Now, read the entire file into a string
M>
M> objStreamWriter.WriteLine("A user viewed this demo at: " +
M> DateTime.Now.ToString());
M>
M> objStreamWriter.WriteLine(System.Configuration.ConfigurationSettings.
M> AppSettings.Get("path-estilos"));
M>
M> //Close the stream
M>
M> objStreamWriter.Close();
M>
M> "Michael Nemtsev" <
[email protected]> escribió en el mensaje
M> M>---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche