Q

Constructing statement to copy one file to desktop

An admin using XP has a batch file to copy files from a CD to the hard drive for an application. He wants one file to be copied to the desktop. He wants to know how to construct the copy statement.

I have a batch file to copy files from a CD to the hard drive for an application. I want one file to be copied to the desktop. I am using Windows XP. How do I construct the copy statement?
There's no easy way to do this in a single copy statement. I'd create a batch file that would do the bulk of the copying first using the XCOPY command, and then one more COPY command to copy the single file you need on the desktop. If you wanted that particular file not to appear in the other folders you copied, you could also then append a DEL statement to get rid of the extra copy of the file that's not on the desktop.
This was last published in February 2006

Dig Deeper on Microsoft Windows Data Backup and Protection

PRO+

Content

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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close