|
- 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;
- }
- }
- }
|