locked
copy-item Progress-Bar RRS feed

  • Question

  • It is possible that the Progress-Bar display large files as 30 Gb?

    Write-Progress -Activity "Copying Files..." -PercentComplete ([int](($FilesCopied/$NumberofFiles)*100)) -CurrentOperation "$FilesCopied files copied out of total of $NumberofFiles files" -Status "Total Size: $TotalSizeGB GB, please wait while copying..."
    Tuesday, January 19, 2016 2:57 PM

Answers

  • It is possible that the Progress-Bar display large files as 30 Gb?

    Copy item blocks execution so you cannot update Write-Progress while it is running.

    Use robocopy instead. (Note that this is not a robocopy support forum.)


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by SysAdm.MAC Tuesday, January 19, 2016 3:48 PM
    Tuesday, January 19, 2016 3:29 PM

All replies

  • What are you trying to ask?  Copy-Item does not have a scriptable progress bar.  You cannot use a progress bar to monitor a single file copy.


    \_(ツ)_/


    • Edited by jrv Tuesday, January 19, 2016 3:08 PM
    Tuesday, January 19, 2016 3:06 PM
  • It is possible that the Progress-Bar display large files as 30 Gb?

    Copy item blocks execution so you cannot update Write-Progress while it is running.

    Use robocopy instead. (Note that this is not a robocopy support forum.)


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by SysAdm.MAC Tuesday, January 19, 2016 3:48 PM
    Tuesday, January 19, 2016 3:29 PM