Welcome Guest (Log in)

Function Example FolderSize("Path")

Example (14) | Windows (12) | Shell (6) |
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Its Just Me
  • StarStarStarStarStar
  • Stack
  • 1
  • 257 Times
  • 07 December 2019
FUNCTION: Get Folder Size with Windows Shell
I do not found an proper function in Livecode to display directory sizes, so i went over the detour of the shell-command and have a corresponding function tinkered that gives me the whole in bytes, kilobytes, megabytes and gigabytes

In the example, everything is commented, so that there should be no questions about it

The whole thing is designed for a Windows environment, but should also be easy to rewrite it for Linux and Mac. In the end its just a shell call ;)

Where can this be used?
e.g. Monitoring user profiles, querying temporary data sets for cleanup tools, etc etc etc
Ajax Loader
Expander triangle
User Comments
Expander triangle