• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

syntax for copy paste a PC folder

What is the syntax for copy/paste a windows 7 or 8 folder?
1 Solution
in which language?

at a windows cmd prompt:
Copy <source> <target>
Lee IngallsDirector of IT/TS, Quality and FinanceCommented:
from CMD prompt...
if you have subdirectories (folders) you wish to include in the copy use xcopy source destination /s /e
Raymond PengSystems EngineerCommented:
at cmd window

xcopy e:\source_folder f:\destination_folder /e /i /h

/e for all subdirectories including empty folder
/i creates destination if does not exist
/h hidden files
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

mgross333Author Commented:
Thanks for replies but I do not mean the entire command . Just the identifier of the folder which should be C:\user name\folder name (ex. My documents).

Please confirm
You need to put quotes around your folder names if they have spaces.

"c:\user name\folder name\My Documents\"
"c:\Users\My Account\MyDocuments"

xcopy "e:\source folder" "f:\destination folder" /e /i /h

You can also put quotes around it even if you don't have spaces.
The names are the same as you get in the explorer window, if you navigate to the folder then click the address bar you will be see it's 'DOS' name, right click for other options.
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
I believe my answer - the final comment - along with the other contributions answered all the possible variations of the question as asked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now