문제

How do I find out the storage capacity of my harddisk without using the OS functions like dir or ls?

도움이 되었습니까?

해결책

On windows:

Win32: GetDiskFreeSpaceEx

.NET: DriveInfo

If, for whatever reason, you still don't want to use those, you can send an IOCTL message direct to the disk driver.

다른 팁

statfs() unix system call is your friend (link points to BSD man page as used in Mac OS X).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top