| View previous topic :: View next topic |
| Author |
Message |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Mon Jun 20, 2005 2:04 pm Post subject: Getting updates from a CMD window |
|
|
Is there a way I can get updates from a command window without using consoleio.dll, as it doesn't seem to work for me. When I use it, it closes EVERYTHING when its done.
So is there possible a better way? (I'm using VDS4) |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jun 22, 2005 9:50 pm Post subject: |
|
|
| Can you give a better example of what you're trying to do? |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Jun 23, 2005 12:10 pm Post subject: |
|
|
Crap. I just realized that I posted this in the wrong forum. Can someone move it?
I have a program that ends up calling a command prompt. I want to call the prompt hidden and have the status updates from the prompt to show in my program.
For instance in the cmd window, you'll see:
processing INF files 25%
processing INF files 50%
scanning files 10%
scanning files 90%
resolving conflicts 50%
I want each of those lines to show in my dialog when they come up in the command window... |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Thu Jun 23, 2005 12:31 pm Post subject: |
|
|
That would be a really handy little trick if you can get it done. It would be very helpful on a couple of my projects as well. _________________ Joe Floyd |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Jun 23, 2005 12:53 pm Post subject: |
|
|
| jwfv wrote: | | That would be a really handy little trick if you can get it done. It would be very helpful on a couple of my projects as well. |
If it helps ya, this is supposed to work
http://www.vdsworld.com/search.php?keywords=console&match_type=0
But I can't get it to work. When I try to test it in my programs, it closes the whole thing (including the VDS code window itself). It appears that the DLL was coded for VDS 2, so that may be the problem. Or I may be an idiot. If you try it out, let me know how it goes for you. |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Jun 23, 2005 1:34 pm Post subject: |
|
|
| Have you tried the vdsconsole.dll? Its freeware. |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Jun 23, 2005 2:20 pm Post subject: |
|
|
| Aslan wrote: | | Have you tried the vdsconsole.dll? Its freeware. |
Yeah, see my post right above yours. It just seems to close everything when its done running, including my VDS coding windows. |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Fri Jul 22, 2005 1:44 pm Post subject: |
|
|
| bump? |
|
| Back to top |
|
 |
mcpaton Newbie
Joined: 27 Jul 2005 Posts: 13
|
Posted: Wed Jul 27, 2005 1:23 pm Post subject: |
|
|
i'm doing something where i print the results from the batch file to a text file, then read the text file into a list... you can echo to a text file like this:
| Code: |
ECHO>>C:\TEXT.TXT TEXT GOES HERE
|
Then just read in TEXT.TXT...
it's not quite what you were after, but along the same lines.... |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Wed Jul 27, 2005 2:26 pm Post subject: |
|
|
I have used something like that also, but it would be more helpful to me to read the results as they are written to the command window. (For progress, any errors, etc.) _________________ Joe Floyd |
|
| Back to top |
|
 |
mcpaton Newbie
Joined: 27 Jul 2005 Posts: 13
|
Posted: Wed Jul 27, 2005 2:36 pm Post subject: |
|
|
| if you work it out i'd be interested to see it, probably would make better use of my application rather than waiting until it's all complete to see the progress |
|
| Back to top |
|
 |
|