Page 1 of 1
Posted: Sat Mar 30, 2002 12:59 pm
by BackupUser
Restored from previous forum. Originally posted by skypa.
Hi,
if i determine a filesize with Result=FileSize("C:\temp.dat"), Result is different on Win9x and Win2k/XP.
why?
Posted: Sat Mar 30, 2002 1:04 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
> if i determine a filesize with Result=FileSize("C:\temp.dat"), Result is
> different on Win9x and Win2k/XP. why?
Temp.dat is probably a protected system file, with no read-access permitted.
Try FileSize with a file you created yourself, and it should return the same
size on all versions of Windows. I've asked Fred to see if FileSize can get
the size of protected files in future, so we'll see.
PB - Registered PureBasic Coder
Posted: Sat Mar 30, 2002 2:00 pm
by BackupUser
Restored from previous forum. Originally posted by skypa.
Temp.dat was an example. I have this problem with every file which isnt generated or extracted from my application :/
Posted: Sat Mar 30, 2002 4:03 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
> Temp.dat was an example. I have this problem with every file which isnt
> generated or extracted from my application :/
Hmm, I see. Well, FileSize works fine for me with PureBasic v2.95 (registered);
are you also using this version?
PB - Registered PureBasic Coder
Edited by - PB on 30 March 2002 16:04:51
Posted: Sat Mar 30, 2002 4:24 pm
by BackupUser
Restored from previous forum. Originally posted by skypa.
Problem solved, my mistake. Sorry, PureBasic works as fine as I know it
