This allows me to securely access and transfer ToDoList documents between Windows devices without much effort. Of course, you can pick a different cloud provider and/or program executable to suit your scenario.
Start-Process [pathname]\VeraCrypt-x64.exe -ArgumentList '/l [driveletter]','/v [pathname]\[container.hc]','/q','/m ts' -Wait
Start-Process [pathname]\[ToDoList.tdl] -Wait
Start-Process [pathname]\VeraCrypt-x64.exe -ArgumentList '/d [driveletter]'
What happens when you execute the script? VeraCrypt presents a pop-up, asking for the container password. VeraCrypt then mounts the container to a driveletter, after which the ToDoList program opens the specified document. When closing the ToDoList program, VeraCrypt opens one last time for you to check if the container is really dismounted.
- For the script to execute in PowerShell, set the
- The .tdl file extension has to be associated: Enable .tdl as a file extension for tasklists.
- If you want to use multiple mounted containers: Allow multiple instances of ToDoList.
-windowstyle hidden to run the script without displaying the PowerShell console.
Used on Windows 10 and Windows 8.1; should work with Windows 7.