Copying files to multiple folders

Transfer a large number of files to another server with Xcopy.

Managing files when out of disk space on the server can cause an adminstrator to stress out. But if you have another...

server/workstation with free disk space, you can write a command file to perform a huge amount of file transfer. Xcopy is a very helpful tool for that procedure, and it will also create a respective directory in the new machine's folder.

For example:

"xcopy ServerAShare1Folder1* ServerBShare2Folder1 /I".

You can actually map a network driver as well. The /I switch at the end will assume that the destination "Folder1" is a folder name to be created if it doesn't exist.

Once you copy all of the files, you can run another command file to delete all of the transferred files by using:

"del ServerAShareAFolder1* /Q"
Switch /Q will not prompt for confirmation (i.e. quiet mode).

This should give you quite a lot of free space.

This was first published in January 2002

Dig Deeper



Find more PRO+ content and other member only offers, here.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:









  • Virtual desktop security guide

    To secure virtual desktops, consider antivirus, certificates and network vulnerabilities. Just remember, VDI doesn't always ...

  • Guide to low-cost desktop virtualization

    In this guide, learn to virtualize desktops without spending more than you would when deploying PCs, and what VDI vendors are ...

  • VDI pilot project guide

    A VDI pilot project should start with a VDI project plan. Know what pitfalls to avoid and test product options to achieve a ...