Batch File Progress Bar While Copying

Posted on
Active1 year, 11 months ago
  1. Batch File Progress Bar
  2. Batch File Progress Bar While Copying
  3. While Loop In Batch File

Does anyone know of a windows commmand-line ( available on XP Pro or later by default ) that could copy a file while showing progress. I do not care if the progress indicator is in a terminal or a GUI window.

Nov 06, 2007  Progress bar when using XCOPY. (on a per-file basis) the number of bytes written so far and a percentange indicating prgress, agian, per file, not necessarily the entire copy totals. Use the /F option to show the names while copying (there is no progress bar option. Does anyone know of a windows commmand-line ( available on XP Pro or later by default ) that could copy a file while showing progress. I do not care if the progress indicator is in a terminal or a GUI window. This is intended to be used during batch file scripting.

This is intended to be used during batch file scripting

Steven

7 Answers

used the copy command with the /z switch for copying over network drives, also works for copying between local drives. on XP home edition

adrianadrian

Batch File Progress Bar

robocopy:

Robocopy, or 'Robust File Copy', is a command-line directory and/or file replication command. Robocopy functionally replaces Xcopy, with more options. It has been available as part of the Windows Resource Kit starting with Windows NT 4.0, and was first introduced as a standard feature in Windows Vista and Windows Server 2008. The command is robocopy..

gnat
6,0279 gold badges41 silver badges67 bronze badges
Kent BoogaartKent Boogaart
149k32 gold badges356 silver badges362 bronze badges

The Esentutl /y option allows copyng (single) file files with progress bar like this :

Equipment serial number status management. Hello All, I have a case. Now the system still show us there is an equiment at the customer side(due to we don't issue the consignment pick up order to get the physical goods from the customer), so we have to finish the consignment pick up order process,but due to the status issue of the serial. Serial number system status sapo. Status information: System status provides you with the information about the current status of SAP serial number. You can also configure a custom status as user status for more information and control over SAP serial numbers. SAP serial number status tables. Plant Maintenance Object List table - OBJK, Equipment master data table - EQUI, Document Header for Serial Numbers for Delivery table - SER01, Complete list of Tables for serial number status.

the command should look like :

The command is available on every windows machine but the y option is presented in windows vista.As it works only with single files does not look very useful for a small ones.Other limitation is that the command cannot overwrite files. Here's a wrapper script that checks the destination and if needed could delete it (help can be seen by passing /h).

npocmakanpocmaka
43.5k11 gold badges96 silver badges137 bronze badges
Loop

Some interesting timings regarding all these methods. If you have Gigabit connections, you should not use the /z flag or it will kill your connection speed. Robocopy or dism are the only tools that go full speed and show a progress bar. wdscase is for multicasting off a WDS server and might be faster if you are imaging 5+ computers. To get the 1:17 timing, I was maxing out the Gigabit connection at 920Mbps so you won't get that on two connections at once. Also take note that exporting the small wim index out of the larger wim file too longer than just copying the whole thing.

If you don't have robocopy.exe available, why not run it from the network share you are copying your files from? In my case, I prefer to do that so I don't have to rebuild my WinPE boot.wim file every time I want to make a change and then update dozens of flash drives.

IconiuIconiu

This technet link has some good info for copying large files. I used an exchange server utility mentioned in the article which shows progress and uses non buffered copy functions internally for faster transfer.

In another scenario, I used robocopy. Robocopy GUI makes it easier to get your command line options right.

Batch File Progress Bar While Copying

Gulzar NazimGulzar NazimWhile
46.9k24 gold badges119 silver badges169 bronze badges
djangofandjangofan
16.5k49 gold badges151 silver badges241 bronze badges

You could easily write a program to do that, I've got several that I've written, that display bytes copied as the file is being copied. If you're interested, comment and I'll post a link to one.

JosefJosef

While Loop In Batch File

6,3641 gold badge26 silver badges32 bronze badges