Coding a standalone progress bar is really easy, but how to code a bar that shows a command progress percentage? I don't know, maybe using the "copy" command...
I think it's possible. I consider Dism an "example" of a command with progress bar. Here is another example: https://www.computerhope.com/forum/index.php?topic=75177.0. It's a countdown more than a bar but it works. I know Powershell is better, but I can barely code a batch file...
OK: counter != progress bar . There are several commandline tools that show a bar, wget being another example, still the functionality seems to come only with these tools. So far i never found any CMD code that was working properly .
In the early versions of this project: https://forums.mydigitallife.net/threads/oem-recovery-partition-creator-for-windows.21978/ AnarethoS used a file he created in AuditIT that would give you a percentage with progress bar while running his batch file. ie, unpacking install.wim with imagex. He may still have this. You could also Google "autoit progress bar". examples come up, even in youtube... I think he stopped using it once he changed to dism...
I created a batch to automate different deployment tasks and I would like to add a progress bar for some commands. If it is not possible I switch to Powershell. I'm not interested in other solutions (AutoIt, wget...). Sorry...
AutoIT compiles an executable file you can use in your batch. ie, Code: @echo off PBar.exe dism /Apply-Image /Imagefile:R:\Install.wim /index:1 /ApplyDir:W:\
Thanks to all of you for tips and suggestions, but I'm really tired of Microsoft... now I need a rest. Anyway, it seems really hard to link a progress bar to any command. PowerShell should be the evolution of the old batch (or the solution to the old problems). But did you wonder why nobody uses it...? (Maybe because it's even worse...) Also, the only idea of recoding everything makes me feel bad... and for what? a bar? looolll... But why in this world even the easiest thing become impossible?
[QUOTE = "Mvp77, post: 1414130, member: 723960"] Codificar una barra de progreso independiente es realmente fácil, pero ¿cómo codificar una barra que muestre un porcentaje de progreso de comando? No lo sé, tal vez usando el comando "copiar" ... [/ QUOTE] Comentas que codificar la barra de progreso es fácil. ¿Cambiarle el color es igual de fácil siendo la barra de progreso del instalador de Windows 10? Quisiera saber cómo hacerlo, y si tuvieras la amabilidad de enseñarme cómo hacerlo. Saludos.
Señor, escribimos en inglés, también encaja con errores. Sir, we write in English, also fits with mistakes.