home *** CD-ROM | disk | FTP | other *** search
- ' This script displays all files on the desktop,
- ' along with their types
- Set FSys = CreateObject("Scripting.FileSystemObject")
- Set WShell = Wscript.CreateObject("Wscript.Shell")
- DTOPfolder = WShell.SpecialFolders("Desktop")
-
- Set Desktop = FSys.GetFolder(DTOPfolder)
- Set DesktopFiles = Desktop.Files
- For Each file in DesktopFiles
- txt = txt & file.Name & " (" & file.Type & ")" & vbCrLf
- Next
- MsgBox txt
-