Skip to content

Instantly share code, notes, and snippets.

@bogorad
Created November 21, 2025 12:36
Show Gist options
  • Select an option

  • Save bogorad/a2ab216d855c9b97484c166b81d77e21 to your computer and use it in GitHub Desktop.

Select an option

Save bogorad/a2ab216d855c9b97484c166b81d77e21 to your computer and use it in GitHub Desktop.
convert epub to kepub and put into dropbox
# Change working directory
Set-Location -Path "C:\Users\chuck\downloads"
# Run kepubify
& "kepubify.exe" --calibre --inplace .
# dbxcli needs the full target path including the filename
$targetDir = "/Apps/Kobo Cloud Sync"
Get-ChildItem -Filter "*.kepub" -File | ForEach-Object {
$targetPath = "$targetDir/$($_.Name)"
Write-Host "Uploading $($_.Name) to $targetPath..."
dbxcli put $_.Name $targetPath
}
# Remove-Item *.epub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment