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?
Filesize different on WinXP/2k and Win9x ?
-
BackupUser
- PureBasic Guru

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm