-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/2397/powershell_quick_way_check_file_type/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
Web Design
3 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
Tonychelle
4 comments · 1 points
-
-
Popular Threads
-
Facebook: How To Get Only Status Updates on Your FB Home Page
1 week ago · 4 comments
-
Firefox: Enable Case Sensitive Searches When Using Find (Ctrl+F)
5 days ago · 1 comment
-
Windows 7: How To Disable Live Preview for Taskbar Thumbnails
2 weeks ago · 2 comments
-
Gmail: How to block a sender from your inbox
3 weeks ago · 3 comments
-
Our first iPhone game GreenThumb available in the App Store
4 weeks ago · 2 comments
-
Facebook: How To Get Only Status Updates on Your FB Home Page
btw, thanks for a great blog.
Set objFSO = CreateObject("Scripting.FilesyStemObject")
myFolder="c:"
Set objFolder = objFSO.GetFolder(myFolder)
GoSubFolders objFolder
Sub GoSubFolders (objDIR)
If objDIR <> "System Volume Information" Then
MainSub objDIR
For Each eFolder in objDIR.SubFolders
GoSubFolders eFolder
Next
End If
End Sub
Sub MainSub (objDIR)
For Each efile in objDIR.Files
WScript.Echo "File ", eFile, "is a ", eFile.Type
Next
End Sub
save it as .vbs extension, type cscript myscript.vbs