Copying files to multiple folders

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.

    Requires Free Membership to View

This was first published in January 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.