Visualizzazione dei risultati da 1 a 3 su 3

Discussione: FileSystemObject

  1. #1

    FileSystemObject

    ciao ragazzi...

    ho questo codice per creare un file di testo..

    codice:
    dim fs,fname
    set fs=Server.CreateObject("Scripting.FileSystemObject")
    
    set fname=fs.CreateTextFile(Server.MapPath("../mdb-database/esporta.txt"))
    fname.Write("ciao")
    fname.WriteLine
    
    
    fname.Close
    set fname=nothing
    set fs=nothing

    ma ho questo problema

    Provo su locale IIS windows 200 pro tutto ok
    provo in linea su win 2003 ok

    provo su un'alto computer IIS eindows xp pro

    SI BLOCCA SENZA FARE NIENTE, mi intasa il nr utenti max connessi e la pagina non va avanti!!!

    Come mai???
    MEMENTO AUDERE SEMPER
    Maxxl

    www.maxxl.it

  2. #2
    Probabilmente hai l'antivirus con il blocco degli script attivato.
    Per quanto riguarda Windows 2003 server, non ammette
    codice:
    ... Server.MapPath("../mdb-database/esporta.txt"))
    ma vuole
    codice:
     ... Server.MapPath("/mdb-database/esporta.txt"))
    Cioè senza i due puntini (..)

  3. #3
    Forse è l'antivirus.. hai ragione

    per i puntini non mi da probleni win 2003

    ciao e grazie
    MEMENTO AUDERE SEMPER
    Maxxl

    www.maxxl.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.