We help IT Professionals succeed at work.

Windows 7, copy d:*.* /s

Los Angeles1
Los Angeles1 asked
on
On many windows system I use the copy /s command to copy the contents of all subdirectories

On this Windows 7 machine I can not do that

C:\targetr>copy z:*.* /s
The syntax of the command is incorrect

Open in new window


How can I enable the /s option for the copy command on Windows 7
Comment
Watch Question

IT Security Analyst Senior
Commented:
Two approaches..

Use XCOPY..
Use Robocopy.

Sounds like you have done this before..

COPY does a lot but lacks power..  ROBOCOPY would be my tool of choice.
If you want to know what copy does..  COPY /?

Robocopy is discussed here.
http://ss64.com/nt/robocopy.html

HTH,

Kent
Neil RussellTechnical Development Lead
CERTIFIED EXPERT

Commented:
Yup agreed, Use Robocopy
Can do 100 times more than COPY and usually 100 times quicker!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.