Page 1 of 1 1
Topic Options
#52001 - 2000-10-30 05:58 AM GetFileSize Returns 0
Anonymous
Unregistered


I've had trouble using the GetFileSize function.  It appears that it will
return 0 if the file is in use at the time.

Any Help is appreciated

------------------
David Gray
IT Professional
Brisbane Australia
david.gray@suncorpmetway.com.au

Top
#52002 - 2000-10-30 06:31 PM Re: GetFileSize Returns 0
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Haven't tried this, hope it works.

code:
$OrgDir = @curdir
cd "C:\"
copy "testfile.txt" "chkfile.txt"
$fs = getfilesize("chkfile.txt")
del "chkfile.txt"
cd "$orgdir"
messagebox("testfile.txt file size is: $fs","",64)

exit

Luck

_________________________
Box
FACTA NON VERBA

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.092 seconds in which 0.069 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org