Create Porgress bar with percentage from command prompt
Is this possible?
Im calling an application from the command line that will create an iso file for me and show a percentage. My aim is to create a GUI for this by letting the user choose folders and iso files by using the common dialog (already done) but when the user clicks create iso the cmd prompt is (purposely) hidden (by me) and so the user isnt told much info. is there anyway i can extract the percentage and put it into a progress bar so the user knows roughly how long they will be waiting etc?
Thanks
TANOVcomputers
Re: Create Porgress bar with percentage from command prompt
There is an article about this in the "Working with Other Programs" section of our Classic VB FAQs (in the FAQ forum).
I don't know if the method it shows supports reading while the other program is still running... if not, previous threads have the answer, so a search will find them.
Re: Create Porgress bar with percentage from command prompt
That link doesnt quite fit my needs... It looks like it is outputting an application log?
And ive tried searching (maybe the wrong keywords - on google and here) but to no avail :(
Any more help?
Cheers
Re: Create Porgress bar with percentage from command prompt
You can capture output from a command prompt in realtime using something like this. There's also another one and probably more.
Re: Create Porgress bar with percentage from command prompt
thank you digirev ill take a look... Ive managed to run the ComSpec or whatever it is to get cmd.exe to run but i cant get it to run the code im typing... how would i input text/code into the command prompt?
Cheers