19andreas61
asked on
WIN10 wbadmin.exe as a C# process
I try to start wbadmin as a process via C#. I've installed WIN10.
If I try a File.Exist(@"c:\Windows\Sy stem32\wba dmin.exe") the answer is false (not found or not the correct priviliges).
A manifest with <requestedExecutionLevel level="requireAdministrato r" uiAccess="false" /> is included and the security request pops up at the program start.
With WIN7 it runs without a problem.
Is there any idea to solve the problem?
If I try a File.Exist(@"c:\Windows\Sy
A manifest with <requestedExecutionLevel level="requireAdministrato
With WIN7 it runs without a problem.
Is there any idea to solve the problem?
ASKER
Hi Sara,
thanks for the information, but ...
Yes it is 64-Bit, but at c:\windows\syswow64\ is no wbadmin.exe.
The c:\Windows\System32\wbadmi n.exe works fine at an Administrator-CMD. I have another place at
C:\Windows\WinSxS\amd64_mi crosoft-wi ndows-blb- cli-main_3 1bf3856ad3 64e35_10.0 .10240.163 84_none_53 554ecf29b3 0305
but there I get the error
"Im Cache des Ressourcenladeprogramms ist kein MUI-Eintrag geladen." (it is a german system)
The basic problem or question is: What can I do that File.Exist(@"c:\Windows\Sy stem32\wba dmin.exe") can see the file, like I can see it at the file-explorer?
Thanks
Andreas
thanks for the information, but ...
Yes it is 64-Bit, but at c:\windows\syswow64\ is no wbadmin.exe.
The c:\Windows\System32\wbadmi
C:\Windows\WinSxS\amd64_mi
but there I get the error
"Im Cache des Ressourcenladeprogramms ist kein MUI-Eintrag geladen." (it is a german system)
The basic problem or question is: What can I do that File.Exist(@"c:\Windows\Sy
Thanks
Andreas
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i found the wbadmin.exe in my system32 folder as well. i think you don't need to check existence of the executable by a File.Exist since wbadmin comes with the operation system.
the operation system should find wbadmin.exe since it is in the standard path.
Sara
using System.Diagnostics;
....
Process.Start("wbadmin.exe");
the operation system should find wbadmin.exe since it is in the standard path.
Sara
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
c:\windows\syswow64\wbadmi
in system32 folder there are only 64-bit executables.
Sara