I'm trying to get integer of free disk space in Batch file. This is a my (very) simple code.
@echo off
wmic logicaldisk get freespace >> freespace.log
exit
But output in freespace.log file.
FreeSpace
9772687360
57401442304
7346626560
0
0
I need to pick integer only and summation. After summation output like this.
74520756224
I search on Google as my best but I can't find solutions. Please help me:)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…