I need to create a directory with the letter P (or whatever) so that it is like drive C or D. After trying different methods, I came to the conclusion that it is best to do this with the help of Subst. But how to do it in C#. The code I'm using doesn't work. As administrator, does not work either.
`
string diskLetter = "P:"; // <---
string path = @"D:\folder path";
Process.Start(new ProcessStartInfo
{
FileName = "subst",
Arguments = $"{diskLetter} \"{path}\"",
Verb = "runas",
UseShellExecute = true
});
`