ServerUtils.RunAsAdmin Method

Runs an application in elevated mode. This mode is required to save the Server's configuration in protected files.

C#

public static void RunAsAdmin(string fileNamestring parameters);

Parameters

Parameters

Description

filename

Full path of application to execute.

Parameters

Arguments.

Example

In the main program of the application using this classes, you can include: if (args.Length == 0) ServerUtils.RunAsAdmin(Application.ExecutablePath, "/edit"); else { [...] }

Group

ServerUtils Methods