Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

syntax for copy paste a PC folder

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

at a windows cmd prompt:
Copy <source> <target>
0
 
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
0
 
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
0
 
serialbandCommented:
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.
0
 
regmigrantCommented:
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.
0
 
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
regmigrantCommented:
I believe my answer - the final comment - along with the other contributions answered all the possible variations of the question as asked.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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