0

I want a C++ program that when build up in TURBO C++ then it will produce an output, which shows file system on my computer being used.
I am beginner and dont know how to write this program.
please help me.
Thanks

2
Contributors
3
Replies
26
Views
1 Year
Discussion Span
Last Post by rproffitt
0

Cheat. Shell out and try wmic logicaldisk where Caption="C:" get caption, VolumeName, VolumeSerialNumber, Size, FileSystem, FreeSpace

That's the command line and you could call wmic from your app and redirect it to some file you read later.

Just tried it.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\WINDOWS\System32>wmic logicaldisk where Caption="C:" get caption, VolumeName, VolumeSerialNumber, Size, FileSystem, FreeSpace

Caption FileSystem FreeSpace Size VolumeName VolumeSerialNumber

C: NTFS 221112107008 471365758976 Windows8_OS 17A2E82F

-1

Alright, thats very nice work, but i am beginner and i need a detailed answer, like if i am coding in TURBO C++, what i need to write in console i need to know.
If u can help then add reply here..
Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.