【发布时间】:2013-04-21 02:16:07
【问题描述】:
我希望你能帮助我解决这个问题。它可能已经被多次询问(我知道),但由于某种原因,我无法让它工作。
我想将一些文件从“files”目录移动到根目录。
所以文件是,例如:
test1.txt test2.txt test3.zip test4.zip test5.exe test6.exe
我希望将这些文件移动到不同的目录。
所以我正在使用这样的东西:
move files\*.txt ..\txt /q
move files\*.zip ..\zip /q
move files\*.exe ..\exe /q
但我总是会出错。它找不到文件,然后 CMD 停止工作。
谢谢。
编辑:
它是这样工作的:
move /y .\files\*.txt ..\txt
move /y .\files\*.zip ..\zip
move /y .\files\*.exe ..\exe
但现在它不会将文件移动到父目录。
【问题讨论】:
-
当前工作目录是什么?
-
C:/test 这个。
-
the root directory.--to different directories去哪儿?But I always get errors消息??
标签: file batch-file move