Posted on: 8/22/2013 1:14:28 AM | Views : 247

thank very much before my case: I have a web site and It create a txt file in local drive fine but when is necesary create a txt file in a lan drive or virtual drive is imposible..... how i do that
I use this code:
Public filePath As String Dim tgtFile : tgtFile = filePath Me.TextBoxFile.Text = "c:\Temp\Fichero.txt" filePath = Me.TextBoxFile.Text.Trim() If filePath <> "" Then Dim fileName As String = filePath.Substring(filePath.LastIndexOf("\") + 1) End If
cn.Open()
query.Connection = cn query.CommandType = Data.CommandType.StoredProcedure
'query.Parameters.Add("@FileName ", SqlDbType.VarChar).Value = filePath query.Parameters.AddWithValue("@FileName", filePath)
query.CommandText = "ExportarPedidos" query.ExecuteNonQuery()
cn.Close()
......... Is working fine in local drive...
But when exec ...

Go to the complete details ...