Long path files and folders copying and moving.

Dear fellows,

Is there any fast and easy solution to copy and move long path files and folders.

Thank you
Shamil
LVL 1
Shamil MohamedIT Infrastructure Engineer/IT Systems ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
robocopy.exe, included in the OS since Vista/Server 2008.
Note that the syntax is slightly different than other command line copy tools; it expects the source folder first, then the target folder, then the file mask(s) to copy, then other options.
robocopy will by default skip files that already exist in the target (same size, same time).
You should set /r (retry) and /w (wait seconds) to values more reasonable than the default of /r:1000000 and /w:30, otherwise a single file with access denied will block the whole operation not forever, bur for a pretty long time; in a reliable LAN (or a local copy), /r:0 should work just fine.
You can move files with /mov (which will leave empty folders in the source), or with /move (which will remove folders from the source if they're empty after the copy).
robocopy /? will give you more details about the command line options; it's a very powerful tool.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
File Sharing Software

From novice to tech pro — start learning today.

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.