How to? Free command

Oct 18, 2008
339
2
Hello -- I have a series of external drive (usb drive) that I connect to my system mounted at a
directory in c:\

The free command will tell me user / free space of a drive -- ie free C:

but I would like to get this info from the mount drive ... The only way I been able to do this is to create a drive letter to the mount drive via the subst command, then the "free" command works on the size of the usb drive --

Is there a way in tcc to issue free directly to a mounted drive?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
I mounted a 64GB WD external HD on "c:\wd" and removed its drive letter. These seems correct:
Code:
v:\> echo %@WMI[.,"SELECT FreeSpace FROM Win32_Volume WHERE Label = 'WD'"]
44953419776
 
v:\> echo %@WMI[.,"SELECT FreeSpace FROM Win32_Volume WHERE Caption = 'C:\\wd\\'"]
44953419776
 
v:\> echo %@WMI[.,"SELECT Capacity FROM Win32_Volume WHERE Caption = 'C:\\wd\\'"]
68722180096

I'm no WMI expert. The best way (for me, at least) to explore WMI and create things like the above is after experimenting with Microsoft's WMI Code Creator (free).
 
Similar threads
Thread starter Title Forum Replies Date
fpefpe How to? free (internal) command Support 0
T WAD Free issue Support 6
B How to? compatability with free d/load of TCC/LE Support 8
S TCMD14 & free for JUNCTION's Support 14
Steve Pitts Strange problem with FREE Support 10
T Fixed free reports negative used amount Support 8
M Free version of 4Dos? Support 5
millardjk AVG free 8.0 and takecmd.dll (b64) Support 5
rconn Free update keys sent Support 2
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1

Similar threads