Disk Size Free Space Winbatch

In Knowledge Base Blog by angeladmin

disks=DiskScan(2)
for i = itemcount(disks,@tab) to 1 by -1
drive=strupper(itemextract(i,disks,@tab))
size=diskfree(drive,0)/1073741824
path=”%drive%ISOs”
if direxist(path) then exit
if size>3 && drive==”R:” then
dirmake(path)
exit
end if
if size>3 && drive==”E:” then
dirmake(path)
exit
end if
if size>3 && drive==”C:” then
dirmake(path)
exit
end if
next i

Angel Computers – Contact Us