Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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