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
14 Answers
Try xcopy instead. Perhaps something like:
xcopy /F "C:\My Folder\file.txt" D:\
From xcopy /?:
2/F - Displays full source and destination file names while copying.
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.
1For 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.
5I 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