How to halt a program???

Let say i have two program called program A and program B, i run program A, but inside program A, i use [call shell(C:\....\programB.exe)] at the 2nd line of my codes in program A, how do i stop program A at 2nd line, until i finished running program B then only continue execute the rest of the code from 2nd line in program A

Please help, if you dun understand wat im saying above, u can ask ...thanks a lot!!!




Answer this question

How to halt a program???

  • Kamalahasan

    thanks for ur solution, if you dun mind, can you gimme a simple example of the codes im newbie in vb.net, i dunno how to use the process.start ....thanks a lot ...

    p/s:is process.start supported in VB6



  • 949stu

    jerry

     

    I sent you  a note at the address you requested....



  • ESTAN

    Jerry,

     

    Please check your email.  I use CreateProcess for this. I do have vb6 examples.

    Unfortunately the clearest example I had with this was in c++ and I sent it to you. I hope it helps.

     

    I did supply VB6 Data Structures with it. I've nver liked "shell myself".

     



  • LuckyAbhishek

    Jerry,

    I sent it in the email you show in your profile here.

    Good luck.

    Needless to say, VB6 in it's time was a terrific product. I rather liked the threading.

    It's eight years later and we have eight years of improvements, terrific new tools and techniques and they are wonderful. But I would disagree that you couldn't turn out a commercial project in vb6. Of course you can and yes it had limitations.

    Good night Jerry.

     



  • Chardiot

    Hi,

    Here's a link in MSDN that describes Process.Start() method. Process.start isn't supported in VB6.

     

    cheers,

    Paul June A. Domag



  • Seraphic Raven

    Hi,

    Try using the Shell command of VB6..
    Shell("c:\windows\notepad.exe", 1)


    cheers,

    Paul June A. Domag


  • Echo1937

    ReneeC,

    I've yet to receive ur email. can you send to this email >> jerrylhl@yahoo.com.

    anyway, really thanks for ur help...

     

    Jerry



  • Debbie Jones

    Omg ,,,,,

     

    I sent it and deleted it. I spent a lot of time putting that together....

    Where is the CRYING Icon



  • Scott L

    thanks a lot ... may i know which email u sent thru

  • JLeBert

    You can use Process.Start from process A to start process B. This method will return a new Process object. You can then call WaitForExit on the returned process object to block process A until process B is done.

    Best regards,
    Johan Stenberg



  • J M

    ReneeC,

    too bad to hear that ... but i dint receive anything from you... if you dun mind, can you please do it for me again   many thanks to you ....

     

    Jerry



  • Dhaval Heruwala

    Thanks for your link... but is there any other functions in VB6 that will work exactly like process.start or any other solutions that can solve my problem i mentioned earlier thanks for who provide the solutions ...

  • flyingsnow

    initially i was using that, but do you know how to stop at the line where we call the shell, after finished the external program then only continue the next line of the code

  • Gidon J

    p/s:is process.start supported in VB6

    vb6 has absolutely no native support for processes and threading.

    It was cr@p when it came out. . . it is cr@p 8 years down the line.

    drop it yesterday.

    It is not fit for commercial development.



  • How to halt a program???