How do you check the size of an unknow device (for example memory stick or USB storage)
and the free space?
How do you check the size of an unknow device (for example memory stick or USB storage)
and the free space?
Each device is known to the operating system, of course. Query the operating system, and get whatever you need, from there.