Solved

syntax for copy paste a PC folder

Posted on 2014-04-08
9
266 Views
Last Modified: 2014-05-06
What is the syntax for copy/paste a windows 7 or 8 folder?
0
Comment
Question by:mgross333
9 Comments
 
LVL 19

Accepted Solution

by:
regmigrant earned 500 total points
ID: 39986314
in which language?

at a windows cmd prompt:
Copy <source> <target>
0
 
LVL 7

Expert Comment

by:Lee Ingalls
ID: 39986342
from CMD prompt...
if you have subdirectories (folders) you wish to include in the copy use xcopy source destination /s /e
0
 
LVL 16

Expert Comment

by:l33tf0b
ID: 39986569
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
 

Author Comment

by:mgross333
ID: 39986913
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 28

Expert Comment

by:serialband
ID: 39986919
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
 
LVL 19

Expert Comment

by:regmigrant
ID: 39988153
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
 
LVL 59

Expert Comment

by:LeeTutor
ID: 40045111
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 40044665
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now