Run an exe from ShellExecute with administrator permission in Vista.
-
Hi all, I have a dialog based application ,here on InitInstance() function of application i want to run an another exe from ShellExecute command like this;
CString shell_str;//path of exe
ShellExecute(NULL,_T("open"),shell_str,NULL,NULL,SW_HIDE);with the use of this exe i want to copy or move some files in Program files folder,so in Case of VISTA and UAC is Enabled its wants to permission of admin rights to copy or move files . so please tell me how can i do this. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
-
Hi all, I have a dialog based application ,here on InitInstance() function of application i want to run an another exe from ShellExecute command like this;
CString shell_str;//path of exe
ShellExecute(NULL,_T("open"),shell_str,NULL,NULL,SW_HIDE);with the use of this exe i want to copy or move some files in Program files folder,so in Case of VISTA and UAC is Enabled its wants to permission of admin rights to copy or move files . so please tell me how can i do this. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
You can give it permission for admin rights. :laugh:
«_Superman_» I love work. It gives me something to do between weekends.
-
Hi all, I have a dialog based application ,here on InitInstance() function of application i want to run an another exe from ShellExecute command like this;
CString shell_str;//path of exe
ShellExecute(NULL,_T("open"),shell_str,NULL,NULL,SW_HIDE);with the use of this exe i want to copy or move some files in Program files folder,so in Case of VISTA and UAC is Enabled its wants to permission of admin rights to copy or move files . so please tell me how can i do this. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
-
Hi all, I have a dialog based application ,here on InitInstance() function of application i want to run an another exe from ShellExecute command like this;
CString shell_str;//path of exe
ShellExecute(NULL,_T("open"),shell_str,NULL,NULL,SW_HIDE);with the use of this exe i want to copy or move some files in Program files folder,so in Case of VISTA and UAC is Enabled its wants to permission of admin rights to copy or move files . so please tell me how can i do this. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
-
I am shure that you havent use the search box. :|
Press F1 for help or google it. Greetings from Germany
-
means
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
Read here.
"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