How to double click desktop icon programatically?
-
Hi, I want to write some code which will double click a desktop shortcut. or the alternate way is how can i run a desktop shurtcut using Createprocess() api. Which exe is responsible to lunch Start->Run window? Thanks in advance..
Birajendu SonicWALL Bangalore India
-
Hi, I want to write some code which will double click a desktop shortcut. or the alternate way is how can i run a desktop shurtcut using Createprocess() api. Which exe is responsible to lunch Start->Run window? Thanks in advance..
Birajendu SonicWALL Bangalore India
I see three separate (and unrelated) questions here? Which one are you interested in?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Hi, I want to write some code which will double click a desktop shortcut. or the alternate way is how can i run a desktop shurtcut using Createprocess() api. Which exe is responsible to lunch Start->Run window? Thanks in advance..
Birajendu SonicWALL Bangalore India
birajendu wrote:
I want to write some code which will double click a desktop shortcut. or the alternate way is how can i run a desktop shurtcut using Createprocess() api.
If you know the path to the desktop shortcut, then you should be able to use ShellExecute to open it. If you need a process handle (the only reason I can think that you might want to use CreateProcess for this), then ShellExecuteEx will let you do that.
birajendu wrote:
Which exe is responsible to lunch Start->Run window?
Windows Explorer.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
birajendu wrote:
I want to write some code which will double click a desktop shortcut. or the alternate way is how can i run a desktop shurtcut using Createprocess() api.
If you know the path to the desktop shortcut, then you should be able to use ShellExecute to open it. If you need a process handle (the only reason I can think that you might want to use CreateProcess for this), then ShellExecuteEx will let you do that.
birajendu wrote:
Which exe is responsible to lunch Start->Run window?
Windows Explorer.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I tried with ShellExecute to open this, But for network connection shortcuts it seems not working. i found another thing about network shortcuts is, the target type is a GUID rather than the actual application. The reason why i asked about the start->run is, if you drag the network shortcut in to start->run it functions perfactly. So can i implement some code to simulate that action?
Birajendu SonicWALL Bangalore India
-
I tried with ShellExecute to open this, But for network connection shortcuts it seems not working. i found another thing about network shortcuts is, the target type is a GUID rather than the actual application. The reason why i asked about the start->run is, if you drag the network shortcut in to start->run it functions perfactly. So can i implement some code to simulate that action?
Birajendu SonicWALL Bangalore India
Try the code in this article[^]
Graham Librarians rule, Ook!