What is the equivalent of "cp --verbose" on windows for copy?

I 'm using the command copy in a build script to export apk files in a specific folder on the network and rename it by adding the release number as a suffix.

I tried giving the option -v but I'm getting the following error.

The system cannot find the file specified 

if I use the command cp I get :

'cp' is not recognized as an internal or external command 

Thanks in advance

1

4 Answers

Try xcopy instead. Perhaps something like:

xcopy /F "C:\My Folder\file.txt" D:\

From xcopy /?:

/F - Displays full source and destination file names while copying.

2

try xcopy /f <source> <dest>

from the usage summary:

/F Displays full source and destination file names while copying.

can't get too much more verbose than that on a copy operation.

1

For a different answer... try robocopy.

xcopy has become deprecated (i.e. there are better and more supported tools) as of Windows Vista and up.

ROBOCOPY Source_folder Destination_folder /V 

Where /V means:

/V : Produce Verbose output log, showing skipped files. 

robocopy allows for more that that, as it can copy permissions, specific files and attributes and can even generate logs.

5

I use Robocopy for my batch scripts, but if you're looking for any Windows command, then you can always go for powershell: copy-item Source Destination -verbose

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like