Page 1 of 1

can not get access to command line process by Process ().G

Posted: Thu Apr 21, 2011 1:19 pm
by Ahell
Hello!

the problem is as follows:
Running HLR.exe with parameter /nss

in delphi write simple code:

Code: Select all

procedure TForm1.Button1Click (Sender: TObject);
begin
Label1.Caption: = process ('HLR.exe'). CommandLine;
end;
function returns only the folder where the program is running "C:\Program Files\HLR\HLR.exe"

nothing more.

How to get a command line process?

Re: can not get access to command line process by Process ()

Posted: Thu Apr 21, 2011 3:14 pm
by madshi
In theory it should work. Have you tried running your app as admin? Maybe you need more access rights than you have.

Re: can not get access to command line process by Process ()

Posted: Thu Apr 21, 2011 7:07 pm
by Ahell
I have all administrator rights on the system.

Maybe my program (viewer) must be run with the privileges of the debugger?
And can I give the process privilege to debug using madkernel?

Re: can not get access to command line process by Process ()

Posted: Sat Apr 23, 2011 6:44 am
by Ahell