我需要进行健康检查。我记得能够运行这样的命令:
C:\TestFolder> move *.* ..
这应将当前文件夹中的所有文件上移一个文件夹,即。给父母。
现在运行此命令,在Windows 10命令提示符下,出现以下错误:
The filename, directory name, or volume label syntax is incorrect.
我在StackOverflow上浏览了一堆类似的问题。大多数答案都说,需要一些复杂的循环命令才能将文件移动到父级。提到move *.* ..
这些的人中有些人说此命令对他们有用,而其他人则报告了我遇到的相同错误。
一个示例:https : //stackoverflow.com/a/25542277/2066896(展开所有评论以查看相关交流)
当然,多年以来我都不需要使用此命令,因此也许在Windows的最近历史记录中的某个时候,已经删除了对move命令中“ ..”符号的支持。也许它从未出现过,而我只是在做梦。
只是想知道是否有人可以解决此问题。谢谢!
如果没有要移动的内容,则会出现错误,请参见下面的示例。尝试
move *.* .. 2>NUL
范例:
D:\test\a folder\with spaces>move *.* ..
D:\test\a folder\with spaces\New Text Document (2).txt
D:\test\a folder\with spaces\New Text Document.txt
2 file(s) moved.
D:\test\a folder\with spaces>move *.* ..
The filename, directory name or volume label syntax is incorrect.
D:\test\a folder\with spaces>move *.* .. 2>NUL
D:\test\a folder\with spaces>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句