获取文件夹占用空间信息
@DIR %NVRHOME% /W /S
@DIR %NVRHOME% /s | tail -n2 | sed 's/,//g' | awk '{if(NR==1){key="Used";}else{key="Free";};sum=$3/(1024*1024);unit="MB";if(sum^>1024){sum=sum/1024;unit="GB";}printf("{\"Type\":\"%s\",\"Capacity\":\"%.2f%s\"}\n",key,sum,unit);}' | jq -s "."