not working: process commandline, trayicons.hint
Posted: Fri Feb 29, 2008 11:18 am
Hello Madshi,
This is my first time posting here, hoping to get a clue what I'm doing wrong. You probably don't remember me but we shared some topics back in the days when EE was fresh (I was most active there in 98-99-00 as bryan7)
I am using Vista 32-bit and Delphi 2007.
2 Problems:
1- I'm trying to get the commandline of a process, but all I get is the exe path+exename, of any process.
memo1.lines.add(Process('vlc.exe').CommandLine);
this simple returns "C:\Program Files\VideoLAN\VLC\vlc.exe", whereas using ProcessExplorer (from sysinternals) i gets the commandline arguments (filename that was loaded)
2- Same with TrayIcon.Hint
memo1.lines.add(Process('vlc.exe').[0].hint);
this is empty, and checking ItemCount returns 0 (with ANY process)
Maybe it's problem with Vista?
Thanks!
This is my first time posting here, hoping to get a clue what I'm doing wrong. You probably don't remember me but we shared some topics back in the days when EE was fresh (I was most active there in 98-99-00 as bryan7)
I am using Vista 32-bit and Delphi 2007.
2 Problems:
1- I'm trying to get the commandline of a process, but all I get is the exe path+exename, of any process.
memo1.lines.add(Process('vlc.exe').CommandLine);
this simple returns "C:\Program Files\VideoLAN\VLC\vlc.exe", whereas using ProcessExplorer (from sysinternals) i gets the commandline arguments (filename that was loaded)
2- Same with TrayIcon.Hint
memo1.lines.add(Process('vlc.exe').[0].hint);
this is empty, and checking ItemCount returns 0 (with ANY process)
Maybe it's problem with Vista?
Thanks!