圣者
精华
|
战斗力 鹅
|
回帖 0
注册时间 2008-2-7
|
本帖最后由 烈之斩 于 2016-10-24 10:39 编辑
随便帮LZ搜了下,知道为啥了。(关键词:command line wildcard wrong file,第一个)
首先这个问题不限于move,几乎所有命令都会有,只要你用*统配,包括dir:
- c:\f>dir 352*
- Volume in drive C has no label.
- Volume Serial Number is B0B6-34B0
- Directory of c:\f
- 10/24/2016 10:26 AM <DIR> 352
- 10/24/2016 10:18 AM 0 353chap_005.png
- 10/24/2016 10:18 AM 0 352chap_001.png
- 10/24/2016 10:18 AM 0 352chap_002.png
- 10/24/2016 10:18 AM 0 352chap_003.png
- 10/24/2016 10:18 AM 0 352chap_004.png
- 10/24/2016 10:18 AM 0 352chap_005.png
- 10/24/2016 10:18 AM 0 352chap_006.png
- 7 File(s) 0 bytes
- 1 Dir(s) 5,609,127,936 bytes free
复制代码 原因是该文件的8.3 name含有你选的字符:
- c:\f>dir /x 352*
- Volume in drive C has no label.
- Volume Serial Number is B0B6-34B0
- Directory of c:\f
- 10/24/2016 10:26 AM <DIR> 352
- 10/24/2016 10:18 AM 0 352808~1.PNG 353chap_005.png
- 10/24/2016 10:18 AM 0 352CHA~1.PNG 352chap_001.png
- 10/24/2016 10:18 AM 0 352CHA~2.PNG 352chap_002.png
- 10/24/2016 10:18 AM 0 352CHA~3.PNG 352chap_003.png
- 10/24/2016 10:18 AM 0 352CHA~4.PNG 352chap_004.png
- 10/24/2016 10:18 AM 0 352CD8~1.PNG 352chap_005.png
- 10/24/2016 10:18 AM 0 35E1B9~1.PNG 352chap_006.png
- 7 File(s) 0 bytes
- 1 Dir(s) 5,609,459,712 bytes free
复制代码 至于为什么会变成352808~1.PNG参见维基的规则4,这里不再赘述。
至于为什么每个硬盘不一样,交给lz自己研究了。大概是里面提到的“undocumented hash”和磁盘路径有关。
|
|