Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/07/2003, 19:03
Avatar de rodvilleda
rodvilleda
 
Fecha de Ingreso: enero-2002
Mensajes: 182
Antigüedad: 24 años, 8 meses
Puntos: 0
Pregunta Server.CreateObject error

Hola todos. Estoy tratando de crear archivos txt via ASP usando el siguiente codigo que encontré en un tutorial


Código PHP:
Const fsoForAppend = 8

Dim objFSO
Set objFSO 
= Server.CreateObject("Scripting.FileSystemObject")

'Open the text file
Dim objTextStream
Set objTextStream = objFSO.OpenTextFile("C:\\Inetpub\\wwwroot\\file.txt", fsoForAppend)

'
Display the contents of the text file
objTextStream
.WriteLine "Hello, World!"
objTextStream.WriteLine "This is fun!!"

Close the file and clean up
objTextStream
.Close
Set objTextStream 
= Nothing
Set objFSO 
= Nothing 

ese codigo me ha funcionado bien en w2000 professional pero al llevarlo a XP Professional no me funciona No tira ningún error, sencillamente se "cuelga" , es decir, no da ningún resultado, ni siquera un error.

que sera???????


gracias de antemano