<%@ Language=VBScript %> <% Dim strDirName, strMyPath, objFSO, strFolder, strFiles, intFileCount, strHost, newpath NewPath = request("changepath") ' COLOQUE AQUI A PASTA QUE VC DESEJA LISTAR: ' Formata subpasta\subpasta\ como o exemplo abaixo ' deixe em branco para listar a partir da rais do site if NewPath = "" Then NewPath = "" strDirName = Server.MapPath("/" & NewPath) strMyPath = Server.MapPath("/" & NewPath) '--------------------------------------------------------------------------------------------- Set objFSO = CreateObject("Scripting.FileSystemObject") Set strFolder = objFSO.GetFolder(strDirName) Set strFiles = strFolder.Files intFileCount = strFolder.Files.Count Dim strPath Dim objFolder Dim objItem strPath = strMyPath Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(strPath) if intFileCount = "0" Then Response.Write("Nenhuma pasta ou subpasta encontrado.") Else Response.Write("