Jump to content

Jose de la Mancha

Level 2
  • Posts

  • Joined

  • Last visited

About Jose de la Mancha

Jose de la Mancha's Achievements



  1. As a bonus, I have : Added the bat script as a task in the Task Scheduler, to be executed once a week Added a line at the end of the bat script, to have it automatically delete all Backup folders older than 30 days : forfiles -p "D:\Backups\Evernote" -m Backup* -d 30 -c "cmd /c IF @isdir == TRUE rd /S /Q @path"
  2. You are right @jefito. Why bother so much after all ? I have made this bat script : chcp 1252 > nul set $madate=%date:~-4%-%date:~3,2%-%date:~0,2% md "D:\Backups\Evernote\Backup "%$madate% "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Appartements" /f "D:\Backups\Evernote\Backup "%$madate%"\Appartements.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Brouillons" /f "D:\Backups\Evernote\Backup "%$madate%"\Brouillons.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Carnet principal\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Carnet principal.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Cuisine" /f "D:\Backups\Evernote\Backup "%$madate%"\Cuisine.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Danse" /f "D:\Backups\Evernote\Backup "%$madate%"\Danse.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Danse - Apprentissage\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Danse - Apprentissage.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Danse - Compétitions\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Danse - Compétitions.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Danse - Polémiques\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Danse - Polémiques.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Decisions" /f "D:\Backups\Evernote\Backup "%$madate%"\Decisions.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Déménagement" /f "D:\Backups\Evernote\Backup "%$madate%"\Déménagement.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:DIVERS" /f "D:\Backups\Evernote\Backup "%$madate%"\DIVERS.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Facebook" /f "D:\Backups\Evernote\Backup "%$madate%"\Facebook.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Hi-Fi ^& Hi-Tech\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Hi-Fi & Hi-Tech.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Informatique" /f "D:\Backups\Evernote\Backup "%$madate%"\Informatique.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:\"Modèles de notes\"" /f "D:\Backups\Evernote\Backup "%$madate%"\Modèles de notes.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Perso" /f "D:\Backups\Evernote\Backup "%$madate%"\Perso.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Santé" /f "D:\Backups\Evernote\Backup "%$madate%"\Santé.enex" "C:\Program Files (x86)\Evernote\ENScript.exe" exportNotes /q "notebook:Voyages" /f "D:\Backups\Evernote\Backup "%$madate%"\Voyages.enex" ... and it just WORKS !!! I had of course to escape properly some notebook names. Two examples : Carnet principal ---> "notebook:\"Carnet principal\"" Hi-Fi & Hi-Tech ---> "notebook:\"Hi-Fi ^& Hi-Tech\"" (please note the ^ before the &) Problem solved for me I guess ? 🤨🤩🤪 (I'm not even sure - I can't believe that I've actually succeeded after all this time, lol)
  3. About notebook 03, if I change its name to "Carnetprincipal" it's saved. So the space seems to be a problem. It would also explain why notebooks 13 and 15 aren't saved. Which raises two questions : 1. Is there a way to solve it without having to change the notebook names ? 2. Why isn't it a problem in notebooks 06, 07, 08 that have spaces too ??? EDIT - notebooks 06, 07, 08 are saved incorrectly too. Probably because of the spaces. So we've solved the accents problem (using a workaround), but not the spaces problem. Oh boy.
  4. @jefitoyou were right with both remarks. Which made me modify the script and end up with this : $ENscript = "C:\Program Files (x86)\Evernote\Evernote\ENScript.exe" $BackupLocation = "D:\Backups\Evernote\" $date = get-date -uformat "%Y-%m-%d" $BackupDir = $BackupLocation + "Backup " + $date if ( ! (Test-Path $BackupDir) ) { md $BackupDir } $B01 = $BackupDir + "\Appartements.enex" $B02 = $BackupDir + "\Brouillons.enex" $B03 = $BackupDir + "\Carnet principal.enex" $B04 = $BackupDir + "\Cuisine.enex" $B05 = $BackupDir + "\Danse.enex" $B06 = $BackupDir + "\Danse - Apprentissage.enex" $B07 = $BackupDir + "\Danse - Compétitions.enex" $B08 = $BackupDir + "\Danse - Polémiques.enex" $B09 = $BackupDir + "\Decisions.enex" $B10 = $BackupDir + "\Déménagement.enex" $B11 = $BackupDir + "\DIVERS.enex" $B12 = $BackupDir + "\Facebook.enex" $B13 = $BackupDir + "\Hi-Fi & Hi-Tech.enex" $B14 = $BackupDir + "\Informatique.enex" $B15 = $BackupDir + "\Modèles de notes.enex" $B16 = $BackupDir + "\Perso.enex" $B17 = $BackupDir + "\Santé.enex" $B18 = $BackupDir + "\Voyages.enex" & $ENscript exportNotes /q "notebook:Appartements" /f $B01 & $ENscript exportNotes /q "notebook:Brouillons" /f $B02 & $ENscript exportNotes /q "notebook:Carnet principal" /f $B03 & $ENscript exportNotes /q "notebook:Cuisine" /f $B04 & $ENscript exportNotes /q "notebook:Danse" /f $B05 & $ENscript exportNotes /q "notebook:Danse - Apprentissage" /f $B06 & $ENscript exportNotes /q "notebook:Danse - Compétitions" /f $B07 & $ENscript exportNotes /q "notebook:Danse - Polémiques" /f $B08 & $ENscript exportNotes /q "notebook:Decisions" /f $B09 & $ENscript exportNotes /q "notebook:Déménagement" /f $B10 & $ENscript exportNotes /q "notebook:DIVERS" /f $B11 & $ENscript exportNotes /q "notebook:Facebook" /f $B12 & $ENscript exportNotes /q "notebook:Hi-Fi & Hi-Tech" /f $B13 & $ENscript exportNotes /q "notebook:Informatique" /f $B14 & $ENscript exportNotes /q "notebook:Modèles de notes" /f $B15 & $ENscript exportNotes /q "notebook:Perso" /f $B16 & $ENscript exportNotes /q "notebook:Santé" /f $B17 & $ENscript exportNotes /q "notebook:Voyages" /f $B18 All the info is now saved (I have checked opening some .enex files with a text editor). Unfortunately, only 15 notebooks out of 18 are saved. 03, 13, 15 are still not saved, and I don't know why. This is driving me crazy !
  5. I'd like to report that I've FINALLY managed to make it work, and backup ALL OF MY CURRENTLY 18 EVERNOTE NOTEBOOKS. But to achieve this, I had to make big compromises on the script side. The loop part just wouldn't work because of the accents / special chars thing. Even seeking help from other boards, it was impossible to make it work. Don't know why. So I just typed in the notebook names one by one, assigning them to various variables. But even THAT didn't work ! So ultimately I had to shorten 6 of the notebook names in the ENscript calls, using the "*". And then miraculously, it worked ! I have no idea why, because some of the names I had to shorten weren't even long or with special characters ("Appartements", "Brouillons"...). Anyway, all my 18 notebooks are now saved, instead of just 12. So I wanted to share the final script, so that you all know that there is at least one way to achieve the intended purpose, even with accents and special chars : $ENscript = "C:\Program Files (x86)\Evernote\Evernote\ENScript.exe" $BackupLocation = "D:\Backups\Evernote\" $date = get-date -uformat "%Y-%m-%d" $BackupDir = $BackupLocation + "Backup " + $date if ( ! (Test-Path $BackupDir) ) { md $BackupDir } $B01 = $BackupDir + "\Appartements.enex" $B02 = $BackupDir + "\Brouillons.enex" $B03 = $BackupDir + "\Carnet principal.enex" $B04 = $BackupDir + "\Cuisine.enex" $B05 = $BackupDir + "\Danse.enex" $B06 = $BackupDir + "\Danse - Apprentissage.enex" $B07 = $BackupDir + "\Danse - Compétitions.enex" $B08 = $BackupDir + "\Danse - Polémiques.enex" $B09 = $BackupDir + "\Decisions.enex" $B10 = $BackupDir + "\Déménagement.enex" $B11 = $BackupDir + "\DIVERS.enex" $B12 = $BackupDir + "\Facebook.enex" $B13 = $BackupDir + "\Hi-Fi & Hi-Tech.enex" $B14 = $BackupDir + "\Informatique.enex" $B15 = $BackupDir + "\Modèles de notes.enex" $B16 = $BackupDir + "\Perso.enex" $B17 = $BackupDir + "\Santé.enex" $B18 = $BackupDir + "\Voyages.enex" & $ENscript exportNotes /q "notebook: App*" /f $B01 & $ENscript exportNotes /q "notebook: Bro*" /f $B02 & $ENscript exportNotes /q "notebook: Car*" /f $B03 & $ENscript exportNotes /q "notebook: Cuisine" /f $B04 & $ENscript exportNotes /q "notebook: Danse" /f $B05 & $ENscript exportNotes /q "notebook: Danse - App*" /f $B06 & $ENscript exportNotes /q "notebook: Danse - Compétitions" /f $B07 & $ENscript exportNotes /q "notebook: Danse - Pol*" /f $B08 & $ENscript exportNotes /q "notebook: Dec*" /f $B09 & $ENscript exportNotes /q "notebook: Déménagement" /f $B10 & $ENscript exportNotes /q "notebook: DIVERS" /f $B11 & $ENscript exportNotes /q "notebook: Facebook" /f $B12 & $ENscript exportNotes /q "notebook: Hi-Fi & Hi-Tech" /f $B13 & $ENscript exportNotes /q "notebook: Informatique" /f $B14 & $ENscript exportNotes /q "notebook: Mod*" /f $B15 & $ENscript exportNotes /q "notebook: Perso" /f $B16 & $ENscript exportNotes /q "notebook: Santé" /f $B17 & $ENscript exportNotes /q "notebook: Voyages" /f $B18 Please note that variables 01, 02, 03, 06, 08 and 15 were the 6 where I absolutely had to put asterisks. All the other ones worked fine without them.
  6. All : after a long discussion on two PowerShell boards (here's the shortest one, the other one is in french : ), everything seems to point indeed at the ENscript.exe windows executable. It looks like it has trouble handling accents and spaces in notebook names. People on these boards say they can't do anything, and it needs to be fixed on the ENscript.exe side. @gbarryI have submitted a support ticket on Evernote's Twitter support channel here : Could you please make sure that somebody looks into it, and that somebody keeps me/us informed ? Thanks in advance.
  7. @jefitoFYI names with spaces aren't saved either apparently, which would be even a bigger issue. Have you noticed that ? Your script doesn't report that as an error, which means that I didn't notice it at first. I have posted the issues (accents, spaces) on a PowerShell board, and I will report back on any improvements. PS : PinkElephant, manually renaming all the notebooks (by replacing all the accents and spaces) just to allow local backups is not a solution, and barely a workaround. Not very acceptable to me, sorry.
  8. Hi @jefito and thanks for your script. Could you please try and address JMD63's issue ? I have exactly the same problem. When I try to backup my notebooks with your script, all those who have accentuated characters (ex : "é") are simply NOT saved, which is obviously a big problem. The problem seems to come when fetching a notebook's name $name = $reader.ReadLine() , because when that name is displayed "Backing up " + $name + "..." , it's already displayed incorrectly in the console. And ultimately the corresponding file is not saved to my hard drive. So if I have 12 notebooks but 2 of them have accents, I will end up with only 10 saved files. Thanks in advance for your reply.
  9. Sooo, any ideas, please ? I'd love to be able to actually read my notes on my Android phone. Hopefully I'm not the only one here to use Evernote on his mobile ?...
  10. Does anybody know how to make this patch work on Evernote for Android ? Right now I can have clear text on dark background on my PC, but it becomes pretty unreadable on my mobile. Thanks.
  • Create New...