我正在学习 Windows 命令提示符,我输入了 move file.txt/file。在 c:\dir 时。
file.txt彻底消失。知道它去了哪里,或者它被删除了吗?
>C:\
>>\dir
>>>\file
>>\dir2
>>>\file
最佳答案
可能在现代 DOS shell 中 /
在作为参数传递时已经被识别为 \
的替代路径分隔符。测试显示您的文件已移动,就像您运行一样:
move file.txt \file
这意味着将file.txt
移动到当前驱动器的根目录并将其命名为file
授予\file
不是一个现有目录。如果 C:
是您当前的驱动器,它现在应该存在为
c:\file
从 move/?
:
[drive:][path]filename1
Specifies the location and name of the file or files you want to move.
destination
Specifies the new location of the file. Destination can consist of a drive letter and colon, a directory name, or a combination. If you are moving only one file, you can also include a filename if you want to rename the file when you move it.
关于Windows cmd提示移动文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24967699/