#341, restore This PC folder in explorer

This commit is contained in:
Kang Yu 2024-07-15 17:58:15 -07:00
parent 8890db68e6
commit d1cf04ec3d

View file

@ -4046,6 +4046,10 @@ namespace PersistentWindows.Common
File.WriteAllText(batFile, "start \"\" /B " + dir); File.WriteAllText(batFile, "start \"\" /B " + dir);
} }
else if (dir.Equals("This PC"))
{
File.WriteAllText(batFile, "explorer /n, /select, %SystemDrive%");
}
else else
{ {
string home = System.Environment.GetEnvironmentVariable("USERPROFILE"); string home = System.Environment.GetEnvironmentVariable("USERPROFILE");