|
-
Aug 25th, 2009, 01:32 PM
#1
Thread Starter
Lively Member
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
My System » Intel Pentium Dual Core T2330 @ 1.6GHz, Win7 Ultimate 32-bit, Office 07 Enterprise, Via AC'97 sound, 2048mb RAM, AutoIt, Adobe Master Collection CS4, VB6.

-
Aug 25th, 2009, 01:39 PM
#2
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.
-
Aug 25th, 2009, 01:55 PM
#3
Thread Starter
Lively Member
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
My System » Intel Pentium Dual Core T2330 @ 1.6GHz, Win7 Ultimate 32-bit, Office 07 Enterprise, Via AC'97 sound, 2048mb RAM, AutoIt, Adobe Master Collection CS4, VB6.

-
Aug 25th, 2009, 05:42 PM
#4
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.
-
Aug 30th, 2009, 06:16 AM
#5
Thread Starter
Lively Member
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
My System » Intel Pentium Dual Core T2330 @ 1.6GHz, Win7 Ultimate 32-bit, Office 07 Enterprise, Via AC'97 sound, 2048mb RAM, AutoIt, Adobe Master Collection CS4, VB6.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|