Lazarus

Programming => General => Topic started by: VinDerKlaus on February 18, 2020, 08:10:56 pm

Title: [SOLVED]How to run command from program?
Post by: VinDerKlaus on February 18, 2020, 08:10:56 pm
Hello,

I try to run "reg add" command, just like you do in cmd, but even though the command works in cmd, it doesn't work in many of the ways that I have tries such as RunCommand. The command includes quotation marks and is actually 2 commands in one line, joined together. What's the most fool-proof way to get a command to work, exactly as it would if it was inputed directly into cmd?

Thank
Title: Re: How to run command from program?
Post by: VinDerKlaus on February 18, 2020, 09:51:55 pm
I found way to enter whole command, no matter how complex - make first parameter of TProcess '/c' - then next parameter can be whole command(s).
TinyPortal © 2005-2018