Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Directory/folder utility

Posted on 2007-04-11
3
Medium Priority
?
166 Views
Last Modified: 2010-04-18
Is there a utility out there that can go through a drive/directories and list the name of directories, the total size of the directories and other attribute such as last modified or even what type files are within the directories, etc?
0
Comment
Question by:bigd563
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 18890289
Take a look at DumpSec (www.somarsoft.com), a utility which we often recommend for requests like this one.

You can also use your own VBScripts to dump out the information you're looking for; take a look at the sample scripts on the Technet Script Repository to get you started: http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18890300

Hello bigd563,
Something like this will do it...


'FindAllFiles.vbs
Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objOutput:Set objOutputFile = objFSO.CreateTextFile("C:\Output.log")
Dim dtOld

strSourceFolder = "C:\Testing" 'starting folder...will recurse downward from here

ProcessFolder objFSO.GetFolder(strSourceFolder)

With objOutput
  .WriteLine
  .WriteLine "Process completed at " & Now
  .WriteLine "==========================="
  .Close
End With

Set objOutputFile = Nothing
Set objFSO = Nothing
wscript.quit


Sub ProcessFolder(strSource)
  ProcessFiles strSource
  For Each fld In strSource.SubFolders
    ProcessFolder fld
  Next
End Sub

Sub ProcessFiles(strSrc)
  For Each file In strSrc.Files
    objOutput.WriteLine objFSO.GetExtensionName(file.name) & "," & file & "," & file.size & "," & file.datecreated & "," & file.datelastmodified & "," & file.datelastaccessed
  End If
  Next
End Sub

~sirbounty
0
 
LVL 70

Accepted Solution

by:
KCTS earned 2000 total points
ID: 18890662
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question