14 lines
No EOL
372 B
C#
14 lines
No EOL
372 B
C#
using System.Diagnostics;
|
|
|
|
namespace GCMM
|
|
{
|
|
public class SymLinks
|
|
{
|
|
public static bool CreateFolderSymbolicLink(string source, string target)
|
|
{
|
|
var proc = Process.Start(new ProcessStartInfo("cmd.exe", $"/c mklink /J \"{source}\" \"{target}\""));
|
|
proc?.WaitForExit();
|
|
return proc?.ExitCode == 0;
|
|
}
|
|
}
|
|
} |