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?

前端 未结 3 479
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 10:51
move C:\\%USERNAME%\\Desktop\\TZClock C:\\%USERNAME%\\Start Menu\\Programs\\TZClock

I keep getting system cannot find the path specified. But I can

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 11:19

    Under Windows XP, it would be thus:

    move "c:\documents and settings\%USERNAME%\desktop\TZClock" "C:\documents and settings\%USERNAME%\Start Menu\Programs\TZClock"
    

    On Windows 7, it is the following (though I'm not in a position to test this right now):

    move "c:\users\%USERNAME%\desktop\TZClock" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TZClock"
    

提交回复
热议问题