Last active
May 1, 2022 14:50
-
-
Save idiotandrobot/033fecaa13bb34cb622321333cd84a2c to your computer and use it in GitHub Desktop.
OneDrive Windows Folder Path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class OneDrive | |
{ | |
private static string _Path; | |
public static string Path => _Path ??= GetPath(); | |
static string GetPath() => Environment.GetEnvironmentVariable("OneDriveConsumer"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment