forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting updates from a CMD window

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Mon Jun 20, 2005 2:04 pm    Post subject: Getting updates from a CMD window Reply with quote

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
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jun 22, 2005 9:50 pm    Post subject: Reply with quote

Can you give a better example of what you're trying to do?
Back to top
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Jun 23, 2005 12:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Jun 23, 2005 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Jun 23, 2005 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu Jun 23, 2005 1:34 pm    Post subject: Reply with quote

Have you tried the vdsconsole.dll? Its freeware.
Back to top
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Jun 23, 2005 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Fri Jul 22, 2005 1:44 pm    Post subject: Reply with quote

bump?
Back to top
View user's profile Send private message
mcpaton
Newbie


Joined: 27 Jul 2005
Posts: 13

PostPosted: Wed Jul 27, 2005 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Wed Jul 27, 2005 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mcpaton
Newbie


Joined: 27 Jul 2005
Posts: 13

PostPosted: Wed Jul 27, 2005 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group