Script to get the files names form local folders:
--------------------------------------------------------
Dim a,b,c,d,e
Set a=createobject("scripting.filesystemobject")
Set b=a.getfolder("e:\backup") '' search for folder in local drive
Set c=b.files '' if any fiels are there in folder then it ger the names
'' if we need to print the folder names in the fodler then we can use " SubFolder "
'' Set c=b.subfolders ---------> likt this
For each d in c
e=e&d.name&vbnewline '' vbnewline is for print the file name in diffreant lines
Next
msgbox e
Set FSO = CreateObject("Scripting.FileSystemObject")
DriveName = "C:\" ' This can be changed acoording to need
Set SourceFolder = FSO.GetFolder(DriveName)
Set SourceFiles = SourceFolder.Files
For Each F1 in SourceFiles
Msgbox F1.Name
Next