Robocopy removes empty folder

Hi,

I have this script looking like this:
robocopy K:\K10S K:\Archive /MOVE /MINAGE:1

Open in new window


It is working fine except that when the root folder is empty the script removes the folder totally and I want to avoid that. How can I do it?

Thanks for help!

Peter
Peter NordbergIT ManagerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
oBdAConnect With a Mentor Commented:
Since you're not copying subfolders, you can simply use /MOV instead of /MOVE.
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.