Simple Windows batch to move folders

Viewed 3871

I'm simply trying to move all files and subdirectories inside d:\temp\test to d:\temp\archive and so I tried these commands:

move d:\temp\test\* d:\temp\archive\
move d:\temp\test\*.* d:\temp\archive\

but I got this error in return:

The filename, directory name, or volume label syntax is incorrect.

Then I dug around on the web and tried this inside a doc bat:

for %%F in ( d:\temp\test\*.* ) do move /Y %%F d:\temp\archive

and this time it shows no error, but everything is standing still and made no changes.

What am i missing here? I'm trying this on Windows 10.

1 Answers
Related