Menu

/q with Traveler VeraCrypt generates an error message when using script to mount file

2022-02-04
2022-02-05
  • Wayne B'Rells

    Wayne B'Rells - 2022-02-04

    Folks,

    I've installed the Traveler version of VeraCrypt on a flash drive. I would like to provide a Windows batch file on that disk to make mounting of an encrypted file easier. Here is my batch file (mount.bat) which I've put on the root of the flash drive:

    :: Mount the Dymo encrypted data on Y:
    echo OFF
    VeraCrypt\VeraCrypt-x64.exe /q /v Encrypted/Dymo.hc /l Y

    VeraCrypt runs when I execute this batch command and prompts me for the password. However, after entering the password I get an error messages:

    The filename, directory name, or volume label syntax is incorrect.
    Source: MountVolume:8455

    If I REMOVE the /q option I don't get an error message but then I have to manually click on "Mount" and enter the password.

    I'd really like to hear any thoughts on why /q seems to trigger an error message and, more critically, what changes I can make to the batch file to allow the encrypted file to be mounted with the least amount of user interaction.

    Many thanks, Wayne

     
  • Adrian Kentleton

    You should use a back slash, rather than a forward slash, in your path to the encrypted file:

    encrypted\Dymo.hc
    
     
    • Wayne B'Rells

      Wayne B'Rells - 2022-02-05

      Many thanks for pointing out my "dumb" error - I must have had Linux in mind when I set up this BATCH file! I am a little surprised that VeraCrypt ran even with the forward slash in the Path....
      In any case, thanks very much!

      Wayne B'Rells
      The above signature shows that this is a valid message from me!

      On Saturday, February 5, 2022, 04:02:55 AM EST, Adrian Kentleton <adriankit@users.sourceforge.net> wrote:
      

      You should use a back slash, rather than a forward slash, in your path to the encrypted file:
      encrypted\Dymo.hc

      /q with Traveler VeraCrypt generates an error message when using script to mount file

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/veracrypt/discussion/technical/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

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.