NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
String Teory Question
« previous
next »
Print
Pages: [
1
]
Author
Topic: String Teory Question (Read 3236 times)
osquiabro
Hero Member
Posts: 687
String Teory Question
«
on:
January 04, 2023, 01:15:12 PM »
Exist any function for return a file size in mb? or other any function for this?
thanks
Logged
DonRidley
Don Ridley
Global Moderator
Hero Member
Posts: 729
donaldridley2011@gmail.com
Re: String Teory Question
«
Reply #1 on:
January 04, 2023, 03:42:49 PM »
When you do st.Load() in StringTheory you can then use st.Length().
st.Load() calls this Win32 API (along with others):
stGetFileSize(long hFile,*long SizeHigh), long, pascal, name('GetFileSize')
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesize
Just tested loading various files into the StringTheory demo. Seems st.Length() after st.Load() will do what you need.
Logged
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."
NetTalk 12.55
Clarion 11
Jane
Sr. Member
Posts: 372
Expert on nothing with opinions on everything.
Re: String Teory Question
«
Reply #2 on:
January 04, 2023, 03:47:14 PM »
Or
https://www.capesoft.com/docs/winevent5/WinEvent.htm#ds_GetFileDirEntry
Logged
osquiabro
Hero Member
Posts: 687
Re: String Teory Question
«
Reply #3 on:
January 05, 2023, 03:53:45 AM »
Don and Jane Thanks..
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
String Teory Question