Hi All,
I am using VDF 16.0 in my web application.
From my webapplication I am starting one background process using the code like following
Code:
Get Window_Handle to hWnd
Move (ShellExecute (hWnd, "open", ("TaskManager.exe"), "" , sProgramPath, 0)) to hInstance
This taskmanager is a background process which has no GUI.
Now from this taskmanager background exe I am giving call to another background process using same command like
Code:
Get Window_Handle to hWnd
Move (ShellExecute (hWnd, "open", ("Accounting.exe"), ("-a " + sAtomString), sProgramPath, 0)) to hInstance
This works fine on XP machines. But on Windows Server 2008 it fails. It starts taskmanager exe but from taskmanager exe, accounting exe is not statred.
When I manually tried starting the taskmanager.exe using run as administrator, it worked fine and started accounting.exe also.
I also tried editing the corresponding manifest files for these exes with the setting as level="requireAdministrator" ...but it did not work...
So is there a way by which I can start this exe through code with administrator rights?
Regards,
Shruti