This project has moved and is read-only. For the latest updates, please go here.

Problem mounting volume using script

Topics: Users Discussion
Jan 15, 2017 at 1:11 AM
I've just moved from TC to VC but can't seem to mount volume using scripts.

Can anyone shed light on why the script below is not working. When I run it the volume is not mounted. Instead I get the password entry window.

"C:\program files\Veracrypt\Veracrypt" /v \Device\Harddisk2\Partition2 /l w /k Keyfile /h n /q /b


Jan 15, 2017 at 10:10 AM
I assume you are using a keyfile with an empty password. I think you need to add the switch /s to stop the (redundant) password window from appearing.
Jan 15, 2017 at 5:00 PM

Thanks for the reply.

When I add /s to the password window does not appear but the drive is not mounted.

Jan 15, 2017 at 9:03 PM
Edited Jan 15, 2017 at 9:04 PM
If you are using an empty password, you also need to add the '/tryemptypass y' switch.
Feb 12, 2017 at 10:49 PM
Thanks Adrian. That worked nicely.