|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Does anybody know how I can monitor the size of a folder, so that when it reaches a particular memory size, a message can appear to alert the user. I think I need to set-up a variable that can be linked to the size of the folder, then possibly a case statement with various messages.
Any help would be appreciated. Thanks ![]() |
|
#2
|
|||
|
|||
|
I believe the Filesystem Object can return the size of a folder. I tried to look in the documentation but the msdn library doesn't seem to work for me at the moment.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Quote:
Quick Example: Dim objFSO As Object Dim objFolder as Object Dim i As Long Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("C:\Program Files") i = objFolder.Size Set objFolder = Nothing Set objFSO = Nothing This will return the size of the folder in bytes. Ta daaa! |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Help with VB code to monitor a folder size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|