WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
Pages (11) [1] 2 3 4 5 6 7 8 9 10 11   ( Go to first unread post )

Disk Info Tool for FAT, FAT32, NTFS, CDFS, UDFS, supports Floppy, ZIP , Fixed disks, USB Memory Storage Devices, Ram Disk, CD-ROM/CDRW/CD-DVD disks, Networked Storage Shares.

SeaFarer
Quote Post


Extremely Active Member
******

Group: Members
Posts: 1753
Member No.: 1464
Joined: 2-September 05


Sponsored Links
Hi,

Full Source code included!


Updated to v1.3


Animated Screenshot...


Regards,

cheers.gif



Attached Image
Attached Image
PM
Top
SeaFarer
Quote Post


Extremely Active Member
******

Group: Members
Posts: 1753
Member No.: 1464
Joined: 2-September 05


Disk Information Tool
Utility & Example v1.3
Contributed by SeaFarer

Provides a visual display of disk information.


Reports Disk information for:

Floppy disks
ZIP disks
Fixed disks
USB Memory Storage Devices
Ram Disk
CD-ROM/CDRW/CD-DVD disks
Networked Storage Shares

Works with FAT, FAT32, NTFS, CDFS, and UDFS files systems.


Tested with :

A Compaq Presario 5170 networked to my Studio PC with the following Devices...

20GB & 6GB fixed disks, 100MB ZIP Drive, CD-ROM, CDRW, 2 1.44MB Floppies, 2 different types of USB JUMP Drives, plus a SanDisk ImageMate 12 in 1 USB reader using 64MB & 32MB SDRAM chips and 16MB Compact Flash card.

v3.0 of MS-RAMDRIVE configured with 32MB of Extended Memory.

Thanks to Samael, Maluc, Wayne, and Sonic for contributions.


Download Information:

Please see the NOTES.TXT file included in the ZIP package for more information.

Previous Downloads: 97

MD5 Checksum:9e7a57b41af036a678f4b8710463c075

Attached File ( Number of downloads: 1192 )
 Login or Register to download
PM
Top
samael
Quote Post


Typo-lord
******

Group: Moderators
Posts: 404
Member No.: 5187
Joined: 10-June 07


The free space percentage can be calculated using the formula:

CODE
Free Space Percentage = (100*FreeSpace)/TotalSpace


Here is a crude implementation:

CODE
; Line 317
; Calculate the Total Disk Capacity and Free Space.
�INVOKE GetDiskFreeSpaceEx,addr szDriveSpecA,addr AvailQ,addr TotalQ,addr TFreeQ

�finit
�fld OneK
�fild AvailQ
�fdiv ST(0), ST(1)
�fistp AvailD
�fild TotalQ
�fdiv ST(0), ST(1)
�fistp TotalD

;int 3

�.data
�biPercentage QWORD 100

�.Code
�FILD biPercentage
�FILD TFreeQ
�FMULP ST(1), ST(0)
�FILD TotalQ
�FDIVP ST(1), ST(0)
�FISTP biPercentage; Store the percentage rounded up to the nearest integer...

; Convert to ASCII and format.


But... the values you have to use to get the correct percentage in all cases, are:

Total Space: The value obtained by calling the DeviceIoControl API with dwIoControlCode = IOCTL_DISK_GET_LENGTH_INFO

Free Space: the TFreeQ value, as in the code above...

Regarding UNC paths, i don't currently have a mapped drive, so i can't recommend anything on that...
PM
Top
maluc
Quote Post


Member
**

Group: Members
Posts: 24
Member No.: 1858
Joined: 23-December 05


hi,

http://home.arcor.de/matthias_privat/disktool.jpg

need more space... biggrin.gif

my version. Get_Disk_Info.zip

+ precent (bar & static)
+ drive icon

greetz
PMEmail Poster
Top
SeaFarer
Quote Post


Extremely Active Member
******

Group: Members
Posts: 1753
Member No.: 1464
Joined: 2-September 05


Hey guys!

Imagine how big my smile was this morning. biggrin.gif

Thanks for the guidance and help.

Samael's percentage code works perfectly. And...

Maluc's updated version worked perfectly on the equipment I've been using for test purposes. Plus...

Getting Icons from the system shell was a great idea Maluc. cool.gif

ZIP drives and USB memory reader drives now show OEM icons. How cool is that? biggrin.gif


@Maluc

Holy cow Maluc!

A 300+GB Hard Drive? blink.gif Sea using old technology still. Biggest hard drive is 20GB which is way more than needed for 32bit 9x platform.

Which... believe it or not, came out of a low-end Win95 PC someone left on the curb for trash pickup two summers ago. It was using a disk manager that loaded BIOS extensions from disk since the PC BIOS did not support it.

That was a good day when I found this disk inside that old bucket! laugh.gif biggrin.gif

Anyway my WinAsm Studio PC uses a 6GB disk, and over half is still available, even with a 1GB Memory Paging File and all softwares loaded.

Regarding 64bit platforms...

Some posts on other boards say that, despite XP and Vistas, true 64bit that behaves and performs like Win32 is still some years away. If that really is the case, why not wait until the software side catches up? Or..

Is that misleading? unsure.gif

Thanks again guys! biggrin.gif
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (11) [1] 2 3 4 5 6 7 8 9 10 11  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian