|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『楼 主』:
检测D盘大小,不是可用空间
使用 LLM 解释/回答一下
@echo off
for /f "eol=可 usebackq tokens=3 delims= " %%i in (`fsutil volume diskfree d:`) do echo d盘总空间(字节)=%%i
pause
@echo off
for /f "eol=可 usebackq tokens=3 delims= " %%i in (`fsutil volume diskfree d:`) do echo D drive total space (bytes)=%%i
pause
|

bat c c++ |
|
2006-12-9 05:43 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
这样有些太过大题小作了吧
defrag d: -a 就好了.......
This is a bit too much of a tempest in a teapot, right? Just do defrag d: -a...
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-12-9 05:47 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by 9527 at 2006-12-9 05:47:
这样有些太过大题小作了吧
defrag d: -a 就好了.......
D:\>defrag d: -a
Windows 磁盘碎片整理程序
版权所有 (c) 2001 Microsoft Corp. and Executive Software International Inc.
分析报告
总共 31.25 GB,15.57 GB (49%)可用,31% 零碎(62% 文件碎片)
您应该对该卷进行碎片整理。
这个命令也不错,就是有点慢
Originally posted by 9527 at 2006-12-9 05:47:
This is a bit overkill, isn't it?
defrag d: -a is enough.......
D:\>defrag d: -a
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International Inc.
Analysis Report
Total 31.25 GB, 15.57 GB (49%) free, 31% fragmented (62% file fragments)
You should defragment this volume.
This command is also good, just a bit slow
|

bat c c++ |
|
2006-12-9 05:55 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
其实我就是想建议你用FOR语句的过滤条件最好不要有“中文”
Actually, I just want to suggest that the filtering conditions of the FOR statement should preferably not have "Chinese".
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-12-9 05:57 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by 9527 at 2006-12-9 05:57:
其实我就是想建议你用FOR语句的过滤条件最好不要有“中文”
谢谢指点,呵呵,很高兴有你的帮助
Originally posted by 9527 at 2006-12-9 05:57:
Actually, I just want to suggest that you'd better not have "Chinese" in the filtering conditions of the FOR statement.
Thank you for the advice, heh heh, I'm glad to have your help
|

bat c c++ |
|
2006-12-9 05:58 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
这个方法不错啊
This method is quite good.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-12-9 06:34 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
楼主的方法如果在FAT32下就行不通了吧?
Does the building owner's method not work under FAT32?
|
|
2006-12-9 07:21 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
wmic logicaldisk where "name='d:'" get name,freespace,size
```
wmic logicaldisk where "name='d:'" get name,freespace,size
```
此帖被 +7 点积分 点击查看详情 评分人:【 redtek 】 | 分数: +5 | 时间:2006-12-9 09:34 | 评分人:【 htysm 】 | 分数: +2 | 时间:2007-4-16 05:15 |
|
|
|
2006-12-9 09:30 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
真是强大的命令,执行信息如下:)
C:\WINDOWS>wmic logicaldisk where "name='d:'" get name,freespace,size
FreeSpace Name Size
1073655808 D: 20966236160
Really powerful command. The execution information is as follows:)
C:\WINDOWS>wmic logicaldisk where "name='d:'" get name,freespace,size
FreeSpace Name Size
1073655808 D: 20966236160
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-9 09:33 |
|
|
wudixin96
银牌会员
    
积分 1928
发帖 931
注册 2007-1-6
状态 离线
|
|
2007-4-6 22:41 |
|
|
htysm
高级用户
   
积分 866
发帖 415
注册 2005-12-4
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
lxmxn兄将“WMIC”运用的很熟悉呀。
Brother lxmxn is very familiar with using "WMIC"!
|
|
2007-4-16 05:15 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Originally posted by htysm at 2007-4-15 16:15:
lxmxn兄将“WMIC”运用的很熟悉呀。
兄过讲了,目前只会最基础的。
Originally posted by htysm at 2007-4-15 16:15:
Brother lxmxn is very familiar with using "WMIC"!
Brother, you're overpraising. I currently only know the most basic ones.
|
|
2007-4-16 10:36 |
|