SquizzyHc
SquizzyHc

Reputation: 15

C# Execute CMD command without admin rights

i need that my program to start a command on cmd without the need to have administrator rights, the command to run should be this: "aka.exe 84920" it's possible? I also tried with a .bat file but to start another process the program must be started with administrator rights Thanks

Upvotes: 0

Views: 1052

Answers (1)

aperezfals
aperezfals

Reputation: 1389

You can open a process without admin rights, in c# like this:

using System.Diagnostics;

Process.Start("aka.exe 84920");

A minute ago I opened a Console Application and put this on the main method:

Process.Start("notepad.exe");

It works!! Without admin rights

Upvotes: 1

Related Questions