Recently, I've created an application to perform the creation of the image and then burning the image to a CD. Prior to this point, I used the RunWait function and displayed the command-line box, but was interested in getting a more live update of the percentages from the command-line application so I could move the information to a UI component (System Tray,Progress Bar,etc.)
I attempted to use CMDret_RunReturn and CMDret_Stream but both of them have failed to give live updates of the percentages of one application. I get the impression it is the particular application that is causing me grief but wanted to see if I was at fault in my execution.
Oscdimg
Oscdimg is the offending application. It allows me to creates boot-able images for Windows Recovery (WinPE) environments. During the creation process a percentage value increases. However, I cannot capture the real-time value of that percentage.
CMDRunReturn Example:
Code:
Output := CMDret_RunReturn("oscdimg -n -h -m -lWinRe -betfsboot.com C:\ImageCreation\CDROM WinRe.ISO")
MsgBox, %Output%
Output shows only after the process is complete. The output shows the application header information and all the percentages as they were updated in the application.
CMDret_Stream Example:
Code:
Gui, Add, Edit, x10 y10 r20 w280 vTestEdit, %Output%
Gui, Show, w300 h300 Center, Example
CMDret_Stream("oscdimg -n -h -m -lWinRe -betfsboot.com C:\ImageCreation\CDROM WinRe.ISO","optional",A_WorkingDir)
CMDret_Output(CMDOut, CMDname="")
{
global Output
Output := Output "`n" CMDOut
GuiControl,,TestEdit, %Output%
}
This will show the header information and then show 0% as the process starts but will not show any updated percentages through the process.
Is there an error in the execution of my code or are there issues with certain command-line application that make them unable to gather their output?
I appreciate the help and the assistance.