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

delphi package - easy access to kernel objects etc.

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

Postby Ahell » Thu Apr 21, 2011 1:19 pm

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?
Ahell
 
Posts: 31
Joined: Mon Feb 07, 2011 4:54 pm

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

Postby madshi » Thu Apr 21, 2011 3:14 pm

In theory it should work. Have you tried running your app as admin? Maybe you need more access rights than you have.
madshi
Site Admin
 
Posts: 9338
Joined: Sun Mar 21, 2004 5:25 pm

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

Postby Ahell » Thu Apr 21, 2011 7:07 pm

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?
Ahell
 
Posts: 31
Joined: Mon Feb 07, 2011 4:54 pm

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

Postby Ahell » Sat Apr 23, 2011 6:44 am

Ahell
 
Posts: 31
Joined: Mon Feb 07, 2011 4:54 pm


Return to madKernel

Who is online

Users browsing this forum: No registered users and 1 guest