Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to run conditional code based on file size
Message
 
 
To
31/10/2007 12:29:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01265420
Message ID:
01265425
Views:
11
>I will have a log file that when it reaches a specified size, is wiped and the log entries start again. I'll use StrToFile with the appropriate flags to either append or replace, but how do I get the file size of the file? Thanks!

You can use ADIR() or WSH
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile(lcfile)
? oFile.Size
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform