Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/10/2008, 08:41
Kwasir
 
Fecha de Ingreso: septiembre-2007
Mensajes: 34
Antigüedad: 16 años, 7 meses
Puntos: 4
Respuesta: Abrir Notepad con un fichero .log

Hola:

Creo que te refieres a esto:

Código:
Dim rutaFichero AsString = Server.MapPath("PONER_AQUÍ_TU_FICHERO")
Dim infFichero As FileInfo = New FileInfo(rutaFichero)
If infFichero.Exists Then
Response.ClearContent()
Response.AddHeader("Content-Disposition", "attachment; filename=" + infFichero.Name)
Response.AddHeader("Content-Length", infFichero.Length.ToString())
Response.ContentType = ".log"
Response.TransmitFile(infFichero.FullName)
Response.End()
EndIf 
Espero que te sirva