|
Liste les fichiers d'un dossie
|
Informations rapides |
|
|
Informations détaillées
|
Description :
Liste les fichiers present à la racine d'un site internet ASP
Portion de code
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<%
' modifier la variable serverpath pour change le dossier à lister.
Set objFSO= CreateObject("Scripting.FileSystemObject") pathinfo = replace(Request.ServerVariables("PATH_INFO"),"/","\") serverpath = replace(lcase(Request.ServerVariables("PATH_TRANSLATED")),lcase(pa thinfo) ,"") For Each File In objFSO.GetFolder(serverpath).Files response.write File.Name & "<br>" Next %> |
|
Informations & Services |
 |
|
|
 |
Newsletter
Autre Sources
Tips
|