Recent

Author Topic: Sorry for the simple question, how to control Processes  (Read 6429 times)

newman

  • Jr. Member
  • **
  • Posts: 75
Sorry for the simple question, how to control Processes
« on: February 17, 2010, 09:16:25 am »
Hello,

I have a simple question, how can I start, end and check whether an application (.exe) program ??

I have a vague idea that TProcess is used but how I can make the operation asynchronous. I went through this http://www.freepascal.org/docs-html/fcl/process/tprocess.html

In other words say program1 starts another program (say program2), now I do not want program 1 to wait until program 2 ends, how can I do this ???

thanks in advance
ne

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Sorry for the simple question, how to control Processes
« Reply #1 on: February 17, 2010, 09:50:56 am »
"Use the Wiki, Lu... er... newman." :D

(I just found it looking for "TProcess" in the wiki's search. ::))

Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

newman

  • Jr. Member
  • **
  • Posts: 75
Re: Sorry for the simple question, how to control Processes
« Reply #2 on: February 17, 2010, 10:36:59 am »
Thanks, but isn't there a more detailed explanation, such as a tutorial etc. The problem is I am more used to VB and this is the first time I am freepascal to control processes.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Sorry for the simple question, how to control Processes
« Reply #3 on: February 17, 2010, 12:02:24 pm »
Quote
Thanks, but isn't there a more detailed explanation, such as a tutorial etc.
The article pointed by Ñuño_Martínez serves as a tutorial as well. Haven't you read it yet?
Quote
The problem is I am more used to VB and this is the first time I am freepascal to control processes.
What are your needs that the wiki doesn't cover? If it's hard to tell, post the VB code.

newman

  • Jr. Member
  • **
  • Posts: 75
Re: Sorry for the simple question, how to control Processes
« Reply #4 on: February 19, 2010, 03:32:41 pm »
Thanks all,
I got the picture.

 

TinyPortal © 2005-2018