I tried many solutions but I fail.
I know that there is a problem with spaces and I can add @
or /"
or ""
(but double quotes in code lead to compiler errors)
This is my code:
string dirAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string sciezka = @"Microsoft\Windows\Menu Start\Programs\Startup";
string path = dirAppData + "\\" + sciezka;
System.Diagnostics.Process.Start("explorer.exe", path); // did not work (wrong path)
string sciezka1 =
@"C:\Users\Piotr\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup";
System.Diagnostics.Process.Start("explorer.exe", sciezka1); // works
How should I write in path that it works in the first case?