Creating a batch file shortcut

T

Tim Slattery

Ken W said:
How do I create a batch file shortcut which copies one file to another
location?

Type the command in a text editor. For example:

xcopy c:\mydir\myfile.doc c:\mynewdir\mynewfile.doc

Will copy myfile.doc in the mydir directory to the new name and
location specified. Save this file as copyfile.cmd. You can run this
from the command line, or create a shortcut on your desktop to invoke
it.

See this page:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx
for lots of information about *.cmd files in WinXP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top