Launching DOS programs from VB 
Author Message
 Launching DOS programs from VB

:I am have been trying, without success, to find a way to launch a DOS
:program (or a batch file) from a VB program. Is this a futile exercise or

Well, I haven't tried this one yet in VB but I know it works in C++.

Create a PIF for the program you wish to run and then either SHELL or WinExec
that PIF.

HTH!

Tim
--
/*---------------------------------------------------------------*\
|    Ginsberg's Restatement of the Three Laws of Thermodynamics   |
|      You can't win.  You can't break even.  You can't quit.     |
|+---------------------------------------------------------------+|

\*---------------------------------------------------------------*/

The content of my posts and/or E-Mail DOES NOT, in any way, reflect
or represent the views and/or opinions of Simulation Sciences, Inc.
 All opinions and views given are my own and will stay that way...



Sun, 18 Jan 1998 03:00:00 GMT  
 Launching DOS programs from VB
Hi everybody

I am have been trying, without success, to find a way to launch a DOS
program (or a batch file) from a VB program. Is this a futile exercise or
can it really be done? Any help will be much appreciated. Replies to

Viv



Sun, 18 Jan 1998 03:00:00 GMT  
 Launching DOS programs from VB


Quote:

> :I am have been trying, without success, to find a way to launch a DOS
> :program (or a batch file) from a VB program. Is this a futile exercise or

> Well, I haven't tried this one yet in VB but I know it works in C++.

> Create a PIF for the program you wish to run and then either SHELL or WinExec
> that PIF.

It should even work straight off -- ok = Shell("dosprog.exe", 3)
PIFs give you better control, though.

--
I've got more important things to do than a {*filter*}y .sig file, alright?!

Tom Wheeley



Sun, 18 Jan 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Launching Windows Program from DOS Program

2. How to launch a VB program off the back of a non VB program

3. Launching a DOS program

4. Launching MS-DOS from with in a Visual Basic Program

5. VB Launching a DOS App with pipes

6. Launching DOS prog from VB

7. Launch a DOS app from VB?

8. Launching DOS app from VB

9. About executing DOS programs in a VB program...

10. HELP!. Communication between DOS programs and VB programs

11. Execute DOS program from VB program

12. Execute DOS program from VB program

 

 
Powered by phpBB® Forum Software