![](/img/trans.png)
[英]Got “The system cannot find the file specified” when I run NETSH from CreateProcess but it works ok on Command Prompt?
[英]Command Prompt: Why do I get “cannot find the path specified” when I move a folder (with contents) from the desktop to a new directory?
move C:\%USERNAME%\Desktop\TZClock C:\%USERNAME%\Start Menu\Programs\TZClock
我不断得到系统找不到指定的路径。 但我可以导航到它。 MOVE
只适用于文件吗?
在Windows XP下,它将是:
move "c:\documents and settings\%USERNAME%\desktop\TZClock" "C:\documents and settings\%USERNAME%\Start Menu\Programs\TZClock"
在Windows 7上,它是以下(虽然我现在无法测试这个):
move "c:\users\%USERNAME%\desktop\TZClock" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TZClock"
如果要使用通配符移动多个目录,可以使用FOR /D
命令。 在命令行中键入此内容(不要忘记将_source_dirs_和_destination_dir_替换为您的目录):
FOR /D %p IN ("_source_dirs_*") DO MOVE %p _destination_dir_
得到它了! 我的语法错误:空间阻止命令运行。 此外,我没有在路径中指定用户。
改变后:
move C:\Users\%USERNAME%\Desktop\TZClock C:\Users\%USERNAME%\"Start Menu"\Programs\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.