Treefile size2/14/2024 ![]() You can choose any folder on any hard drive that's plugged in, including removable ones, as well as the entire hard drives. If ($depth -le 3)" -f ($Data.Size / 1GB) + " GB", (' '*($IndentDepth+2)) + $Data.Unable to delete files directly from the program.Īn update hasn't been released since 2010.ĭisktective is portable and takes up less than 1 MB of disk space, so you can carry it with you on a flash drive.Įach time it opens, you're asked what directory to scan. This just feels inefficient to me, so I started looking at alternatives. However, the memory requirements increase sharply on systems with a large number of files and folders such as file servers. On my test drive it completes in about 60 seconds and consumed about 200MB of RAM. Surprisingly this solution works really well. This solution runs Get-ChildItem a very large number of times, and the majority of files on the system are counted multiple times. I have tired dir/s and even Joakim Svendsen's "folder sizes using COM and by default with a fallback to robocopy.exe" function, but nothing seems to give much of an improvement in speed. I've been trying to create a script that returns the largest folders on a drive.įrom what I can tell, Get-ChildItem is my only real option. Research Triangle Powershell User Group remote-capable.Philadelphia PowerShell User Group remote-capable.Madison Power Users Group remote-capable.Denver Microsoft Enterprise Management User Group.NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions. ![]() ![]() ![]() Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Submission Guidelines | Link Flair - How To ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |