progress bar while copying (xcopy)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
v444
Posts: 2
Joined: 13 Jan 2021 01:01

progress bar while copying (xcopy)

#1 Post by v444 » 07 Mar 2022 02:40

Hey guys,
can you please help me to add progress bar, or a percentage while copying files using xcopy.

Code: Select all

xcopy \\drive\tech\Install\Databases\Oracle\win32_11gR2_client C:\OracleTemp /e /y > nul


atfon
Posts: 178
Joined: 06 Oct 2017 07:33

Re: progress bar while copying (xcopy)

#3 Post by atfon » 07 Mar 2022 08:36

Is there any reason you just want to use xcopy for this? Robocopy has been a standard part of Windows since Vista and has a built in progress feature:

https://ss64.com/nt/robocopy.html

npocmaka_
Posts: 512
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: progress bar while copying (xcopy)

#4 Post by npocmaka_ » 07 Mar 2022 10:17

for (big) single files

Code: Select all

esentutl /y "FILE.EXT" /d "DEST.EXT" /o
can be used.

jfl
Posts: 226
Joined: 26 Oct 2012 06:40
Location: Saint Hilaire du Touvet, France
Contact:

Re: progress bar while copying (xcopy)

#5 Post by jfl » 31 Mar 2022 02:54

I did not not about esentutl.exe, thanks for the tip.
But I just gave it a try, and (disappointingly) it does not work with network drives.
(Which is the main case for which I need progress bars: When copying big files back and forth between my laptop at home and servers in the office.)
The error says:
Operation terminated with error -1023 (JET_errInvalidPath, Invalid file path) after 0.219 seconds.

Post Reply