E
E
EastJesus2019-02-26 13:22:45
Windows
EastJesus, 2019-02-26 13:22:45

Similar to the cp -r command in Windows?

Webpack uses a script to copy a folder: "copy-static": "cp -r ./assets/img ./static"
Is there an equivalent to this command on Windows? Tried and XCOPY, ROBOCOPY, does not work, gives an error in the console

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem @Jump, 2019-02-26
curated by the

Well, for example, for XCOPY, the analogue cp -r iscopy

F
Flying, 2019-02-26
@Flying

In principle, there are ports of many Unix utilities to Windows, in particular under the GnuWin32 project . Specifically cplocated in CoreUtils . I've been using it for many years - in many ways it provides an environment close to Unix, adjusted for limitations of cmd.execourse, but natively, without CygWin.

G
Gmustdie, 2021-12-24
@Gmustdie

pscp in powershell has the same functionality as cp in linux, unlike XCOPY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question