Lazarus
Programming => General => Topic started 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
-
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).