mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-20 20:33:06 +12:00
28 lines
628 B
C#
28 lines
628 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace OnTopReplica {
|
|
|
|
static class Shell {
|
|
|
|
/// <summary>
|
|
/// Executes a filename via Windows shell.
|
|
/// </summary>
|
|
/// <param name="filename">Filename to execute.</param>
|
|
public static void Execute(string filename){
|
|
if (filename == null)
|
|
throw new ArgumentNullException();
|
|
|
|
Process.Start(new ProcessStartInfo {
|
|
FileName = filename,
|
|
UseShellExecute = true
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
}
|