Open system32 programs by C#

Asked

Viewed 139 times

-2

I am trying to run Active Directory from my machine via C#. I can open all other common programs without problem. The program is installed in C:\Windows\system32\dsa.msc, but Visual Studio shows an error and informs that did not find this file, even though he exists.

I’m running it this way:

System.Diagnostics.Process.Start(@"C:\Windows\system32\dsa.msc");

Path in Windows: inserir a descrição da imagem aqui

Error of Visual Basic:

inserir a descrição da imagem aqui

  • If it did, it wouldn’t make this mistake.

  • it exists, because if play in the run it opens the direct program.

  • Well, show exactly the error and a screenshot of the file showing the complete path to it

  • Try it like this System.Diagnostics.Process.Start("dsa.msc");

  • @Murarialex I tried this way and also could not find the file.

  • 1

    @LINQ Added the photos in the question.

  • 1

    I managed to solve the problem was that I had to set the OS version in visual . I set it to 64 Bits only and it worked.

  • Put your solution in response to the next users who have the same problem solve easy as well. Abs

  • 1

    @Guilhermeia I’m sorry, I’ve put in the right place but I can not mark as solution.

  • Rest assured @Brunofelipekouuds, when you have the minimum score to vote right you come back here and vote. Just leave the solution to the next users already worth. Hugs!

Show 5 more comments

1 answer

2


I was able to solve by removing the selection of the options "to hurt 32 bits" in Build Properties.

The point was that for some reason he was not finding it due to the S.O. version set in Properties of Visual Studio.

Solução

Browser other questions tagged

You are not signed in. Login or sign up in order to post.