Search code examples
cmdcommandadminadministratorrights

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


Solution

  • 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