Skip to content

Instantly share code, notes, and snippets.

@idiotandrobot
Last active May 1, 2022 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idiotandrobot/033fecaa13bb34cb622321333cd84a2c to your computer and use it in GitHub Desktop.
Save idiotandrobot/033fecaa13bb34cb622321333cd84a2c to your computer and use it in GitHub Desktop.
OneDrive Windows Folder Path
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