Menu

calling Veracrypt within Python script

2018-06-02
2018-06-03
  • Yosef Mamotza

    Yosef Mamotza - 2018-06-02

    Hi,
    I'm trying to rewrite my DOS scripts for calling Veracrypt from within Python. I could really do with some help.

    import subprocess
    runvc = "c:/program files/veracrypt/veracrypt.exe"
    arguments=('/tc /q /v encrypted.tc /l Z')
    subprocess.call([runvc, arguments])

    The argument calls to load the volume "encrypted.tc" from a USB drive as Z:, but it doesn't load. This argument works from DOS.

    I got the script from various people who can call EXE files with arguments, but its not working.

    any ideas.

    Yosef

     
  • Yosef Mamotza

    Yosef Mamotza - 2018-06-02

    veracrypt comes up, but doesn't use the parameters specified.

     
  • Adrian Kentleton

    Have you tried using the full path to 'encrypted.tc' in your arguments?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.