Results 1 to 5 of 5

Thread: Create Porgress bar with percentage from command prompt

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    F.E.V
    Posts
    68

    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.


  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    F.E.V
    Posts
    68

    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.


  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    F.E.V
    Posts
    68

    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
  •  



Click Here to Expand Forum to Full Width