How to know BytesperSector?
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
How to know BytesperSector?
Does anybody know a quick and short way to know the bytes number per sector in a given data store device?
Code: Select all
Drive$ = "C:\"
If GetDiskFreeSpace_(@Drive$, @SectorsperCluster.l, @BytesPerSector.l, @FreeClusters.l, @TotalClusters.l)
Debug "BytesPerSector: "+Str(BytesPerSector)
Else
Debug "error!"
EndIf
correct for drives smaller than 2GB.
The BytesPerSector value should be correct tough, even if the drive is too big. (acording to MS docs)
Timo
quidquid Latine dictum sit altum videtur
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact: