Voici comment afficher le contenu d'un dossier en VBS :
' --------------------------------------
' Affiche tous les fichiers d'un dossier
' --------------------------------------
my_folder = "le_dossier"
Set fso = CreateObject("Scripting.FileSystemObject" )
Set f = fso.GetFolder(my_folder)
Set fc = f.Files
list_of_files = "Dans le dossier " & my_folder & ", il y a :" & VbCrLF & VbCrLF
For Each f1 in fc
' Wscript.Echo f1.name
list_of_files = list_of_files & f1.name & VbCrLF
Next
Wscript.Echo list_of_files
|
Par contre, je ne sais pas comment faire une InputBox en VBS.