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

delphi package - easy access to kernel objects etc.
Post Reply
Ahell
Posts: 31
Joined: Mon Feb 07, 2011 4:54 pm

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

Post 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?
madshi
Site Admin
Posts: 10339
Joined: Sun Mar 21, 2004 5:25 pm

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

Post by madshi »

In theory it should work. Have you tried running your app as admin? Maybe you need more access rights than you have.
Ahell
Posts: 31
Joined: Mon Feb 07, 2011 4:54 pm

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

Post 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?
Post Reply