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 first published in February 2006

Dig deeper on Microsoft Windows Data Backup and Protection

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

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:

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close