How do I programmatically locate my Dropbox folder using C#?
UPDATED SOLUTION Dropbox now provides an info.json file as stated here: https://www.dropbox.com/en/help/4584 If you don’t want to deal with parsing the JSON, you can simply use the following solution: var infoPath = @”Dropbox\info.json”; var jsonPath = Path.Combine(Environment.GetEnvironmentVariable(“LocalAppData”), infoPath); if (!File.Exists(jsonPath)) jsonPath = Path.Combine(Environment.GetEnvironmentVariable(“AppData”), infoPath); if (!File.Exists(jsonPath)) throw new Exception(“Dropbox could not be found!”); var dropboxPath … Read more