Link cmd prompt to visual basic application

Microsoft Visual basic 6.0 win32 profess...
December 29, 2009 at 04:49:14
Specs: Windows XP
Hello... experts can i link the information from the active prompt of a DOS to mi application in vb 6.0, i'm trying to conect the last line generated with my app but it`s so very hard , someone help me. Thanks for the answers...

See More: Link cmd prompt to visual basic application

December 29, 2009 at 05:15:19
This thread should be moved into the Programming Forum...

Google is your friend


Keyboard not present,press F1 to continue...

Report •

December 29, 2009 at 09:55:52
Not sure what you are trying to do as there is no DOS in Windows XP.

I guess you are trying to run a VB application from the command prompt.

You can do this with VB6 quite easily. VB6 has a system variable called Command. When your VB app runs you can query this variable and it will contain any parameters that were passed on the command line that initiated the VB app.

Exanple: If you type MyApp ABCD. When MyApp runs Command will contain ABCD.

You can do this from any other application that can itself initiate an application.

Look up Command in the VB help.


Report •

December 29, 2009 at 11:59:58
Hi stuart and everybody. thanks for the answer

Maybe i ' cant explain My idea fine.
I have a app in VB , i have a progress bar into a Form , this app open a process ".exe" which open too a promt window- type comand line (the typical window whit Background Black and white font) . this runs a trascoding process in which exist bitrates values (160 Kbs to 2000 Kbs) , in the last line or top bottom , i need what this line appear into my form to build the progress bar (File Size/Bitrate average)= time to process, without this value i can`t finish the proyect for the test of my High schooll , and in my country the Knowledge about this it`s small , how i can develop a source code to obtain this line (From the cmd process to my app).

Thanks stuart and every Body (excuse my english i know what it`s freak sorry)

Report •

Related Solutions

December 29, 2009 at 17:49:53
only way i can think of is use pipe to send the output from the .exe into a text file and have your vb program read the textfile. f/e: if your "transcoder" is called "transcode.exe", in vb you would invoke it by: shell ("transcode.exe > status.log") then open "status.log" for input and see what you get. I've never tried anything like this though, and i have no knowledge of the .exe you are trying to capture output from. A lot of executables can't be piped, they go direct to screen instead of stdio. (a lot of "helps" do this, very frustrating when they scroll off the screen.)

Report •

January 13, 2010 at 04:15:20
Hi Nbrane . Good solution i´m try and its usefull. Tks.

Report •

Ask Question