Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Size
Message
 
 
To
12/06/2002 12:46:20
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00667491
Message ID:
00667507
Views:
22
>Hi,
>
>Is there a way to get file size and folder size.
>
>
You can use WSH
oFso = CreateObject("Scripting.FileSystemObject")
cFileName = "myfile.txt"
oFile = oFso.GetFile(cFileName)
? oFile.Size
cFolderName = "C:\myfolder\"
oFolder = oFso.GetFolder(cFolderName)
? ofolder.Size
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform