Jump to content











Photo

Is it possible to copy files using command line with progress bar in percentage ?

cmd

  • Please log in to reply
2 replies to this topic

#1 devdevadev

devdevadev

    Silver Member

  • Advanced user
  • 540 posts
  •  
    India

Posted 11 April 2020 - 12:33 AM

Is there any hope to copy files using command line tools with progress bar in percentage (%) ?
 
echo.& Echo copying SPL files to %USBDRIVELETTER%
:: robocopy "%~dp0SPL" "%USBDRIVELETTER%" /E /MT:1
xcopy /herky "%~dp0SPL\*.*" "%USBDRIVELETTER%\*.*" /Q
 
Does any tool like xcopy, robocopy etc...support Progress Bar for copying files ?
 
Regards....
 


#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 11 April 2020 - 08:25 AM

You should fix your Google.  :rolleyes:

 

Batch:

https://ss64.org/vie....php?id=919&p=1

 

Powershell:

https://stackoverflo...r-in-powershell

https://keithga.word...emwithprogress/

 

Autoit:

https://www.autoitsc...th-progressbar/

 

So:

1) yes, there is hope.

2) xxcopy (now discontinued) does:

http://www.xxcopy.com/

 

:duff:

Wonko


  • Tokener likes this

#3 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 458 posts
  •  
    Germany

Posted 12 April 2020 - 07:25 AM

in linux it's a possible to use pv .. as hint..
maybe gives someting also for winnt ..

in Linux is it via pipe :
if [ -f /usr/bin/pv ] ; then
	 printf "\e[97\e[41m"
	  tar cf - $theme -P | pv -s $(du -sb $theme | awk '{print $1}') | gzip > $theme.tar.gz
		 mv $theme.tar.gz $backitup.$theme.tar.gz
    printf "\e[0m"
    break
you could maybe try GnuTools..
a pv for win32 ..

best regards
Blacky





Also tagged with one or more of these keywords: cmd

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users