Filesize different on WinXP/2k and Win9x ?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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 :/
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by skypa.

Problem solved, my mistake. Sorry, PureBasic works as fine as I know it :)
Post Reply