Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 16
  1. #1

    come si leggono i files di faccio l'upload?

    ho dato la possibilita' agli utenti di fare l'upload alla cartella public.....
    ora se io volessi leggerne il contenuto..... senza aprire lìftp che devo fare???
    (p.s. ho il dominio su aruba)
    grazie :-)

  2. #2

  3. #3
    mi spiego meglio
    facciamo finta che io faccia l'upoload al mio sito nella cartella public......
    alla fine dentro la cartella mi trovero' x.file con estensioni varie...come creo una pagina...che in automatico mi mostra il contenuto... che mi da la possibilita' di farne il download????
    se non addirittura di cancellare il file stesso???

  4. #4
    Guarda che alexba64 ti ha già dato un ottimo spunto da cui iniziare, almeno hai letto quello che c'è scritto dentro al link?
    Cerco ombrello vecchio, nuovo, moderno o antidiluviano; purché protegga da una pioggia che vien giù come Dio la manda. Fate presto che ho l’acqua alla gola. (Noè)

    C# programming and other stuffs

  5. #5
    <%
    dim fs,fname
    set fs=Server.CreateObject("Scripting.FileSystemObject ")
    set fname=fs.CreateTextFile("c:\test.txt",true)
    fname.WriteLine("Hello World!")
    fname.Close
    set fname=nothing
    set fs=nothing
    %>

    se ti riferisci a questo si letto...ma s enn sbaglio qui mostra come creare un file di testo....
    mentre io voglio solo creare una pagina che veda i files gia' caricatai
    (ho provato con .htaccess...) ma nulla

  6. #6
    Cerca su Google
    ASP FSO List Content Folder

  7. #7
    ma in una pagina tu leggi quello che c'è in fondo e basta? prima di quello c'è:

    Does a specified file exist?
    This example demonstrates how to first create a FileSystemObject Object, and then use the FileExists method to check if the file exists.

    Does a specified folder exist?
    This example demonstrates how to use the FolderExists method to check if a folder exists.

    Does a specified drive exist?
    This example demonstrates how to use the DriveExists method to check if a drive exists.

    Get the name of a specified drive
    This example demonstrates how to use the GetDriveName method to get the name of a specified drive.

    Get the name of the parent folder of a specified path
    This example demonstrates how to use the GetParentFolderName method to get the name of the parent folder of a specified path.

    Get the file extension
    This example demonstrates how to use the GetExtensionName method to get the file extension of the last component in a specified path.

    Get file name
    This example demonstrates how to use the GetFileName method to get the file name of the last component in a specified path.

    Get the base name of a file or folder
    This example demonstrates how to use the GetBaseName method to return the base name of the file or folder, in a specified path.

    e poi, cerchi "fso" nel forum e trovi (prima voce della ricerca):

    [list=1][*]questo [*]questo[*]e anche questo [/list=1]

    non è per dire, ma bisogna mettere anche del proprio non aspettare sempre la pappa pronta

    Cerco ombrello vecchio, nuovo, moderno o antidiluviano; purché protegga da una pioggia che vien giù come Dio la manda. Fate presto che ho l’acqua alla gola. (Noè)

    C# programming and other stuffs

  8. #8
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    un buono script per capire "come stanno le cose"

    http://www.asp101.com/samples/dir_list.asp

  9. #9
    ok lo ammetto sono rimbecillito

    ho scritto sto codice..ma nn riesco a vedere un gayser

    <%
    Percorso_Cartella= "public/"
    Set File_System_Object = Server.createObject("Scripting.FileSystemObject")
    Set Cartella_Object = File_System_Object.GetFolder(Server.MapPath(public/))
    Set Files_Object = Cartella_Object.Files
    for each Singolo_File in Files_Object
    response.write Singolo_File.Name &"
    "
    next
    Set Files_Object = Nothing
    Set Cartella_Object = Nothing
    Set File_System_Object = Nothing
    %>

    dove sbaglio?

  10. #10
    Set Cartella_Object = File_System_Object.GetFolder(Server.MapPath(Percorso_Cartella))

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 © 2026 vBulletin Solutions, Inc. All rights reserved.