mv command not working as I want.

Hello,

Firstly I'm using MINGW32, which shouldn't make a difference (hasn't so far for everything else I've done...). Anyway, I'm wanting to move all files within a directory to another directory. I'm using this command:

mv "D:\Work\Miscellaneous\nightly\*" "D:\"

Open in new window


This seems to do absolutely nothing though. Any suggestions?

Thanks,
Uni
LVL 3
Unimatrix_001Asked:
Who is Participating?
 
lexlythiusConnect With a Mentor Commented:
Keep in mind that backslash \ is both the escape character and directory separator, must be escaped by itself. Try
mv "D:\\Work\\Miscellaneous\\nightly\\*" "D:\\"

Open in new window

0
 
TintinCommented:
Forward slashes should work just fine



mv D:/Work/Miscellaneous/nightly/* "D:/

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.