Skip to content

Instantly share code, notes, and snippets.

@marckean
Created December 7, 2016 01:58
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 marckean/f94871c722522c8ee84cc368cc11b4e5 to your computer and use it in GitHub Desktop.
Save marckean/f94871c722522c8ee84cc368cc11b4e5 to your computer and use it in GitHub Desktop.
#region Dropbox path
$dropboxDBfile = Get-ChildItem -Path $env:USERPROFILE\AppData\Local -Recurse -ErrorAction SilentlyContinue | ? {$_.Name -eq 'host.db'}
$base64path = gc $dropboxDBfile.FullName | select -index 1 # -index 1 is the 2nd line in the file
$dropboxPath = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($base64path)) # convert from base64 to ascii
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment