Forum > Windows (32/64)

[Windows 11] Use TProcess directly or not?

(1/2) > >>

Hi All,

I'm really new to Lazarus/Free Pascal, although I had my first encouter with Turbo Pascal some 20 years ago.
Last year I have learned to use Python and I found that I wanted to learn a more systems-programming kind of language that is not as taxing to learn as for instance Rust or C++.

I ended up on Lazarus/FreePascal and that seems to fit just fine for what I want to do.

My current quest is to find a way to control some processes on a Windows machine, Windows 11 to be precise. And what I found is some contradictions in advise on how to go about doing that.

Question: Do I use TProcess or a wrapper? Some are deprecated (compiler message)

Currently I lean to do both, write an own wrapper for a specific purpose.

E.g. to run a program with a timeout:,50525.msg368880.html#msg368880

The deprecated functions won't be removed soon, the deprecation is only there to signal that we don't accept quoting related bugreports for it.

Hi Marcov,

Thanks for the reply, I will then proceed on the path of building on the TProcess class.
For my needs the process (multiple ones) need to run at the same time, so plenty of research and testing to do.

If you develop certain interesting examples (just like I did with output to memo or timeout or remote control program), please package them and put them online.

Maybe we can collect the examples in some gitlab repo or so.

If whatever I develop actually works, I will try to package it in a Unit.

Bear in mind the complete novice I am, it could take a while  :D


[0] Message Index

[#] Next page

Go to full version