/q means "Automatically perform requested actions and exit (main VeraCrypt window will not be displayed)"; if you don't specify /q, the action won't be performed!
You either specify /p "" or /tryemptypass, not both, with /q. That should work.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PS You don't need quotes around your paths, since they don't contain spaces; but you've not closed quotes in the keyfile path (according to your post).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Veracrypt 1.26.24
Windows 11 Pro with all current updates
Disclaimer:
I want to automate some things, i know using keyfiles/passwords in batch files isn't super secure.
I created a test container und a test keyfile
C:\test\test.hc
C:\test\test.key
Mounting over the GUI works.
veracrypt.exe /v "C:\test\test.hc" /keyfile "C:\test\test.key /p "" /l x /tryemptypass
(later i want /q /s /e too, but for testing i only use the minimal)
This opens veracrypt, with the container and drive letter selected, but not the keyfile.
I tried my best to google this problem, but could find my problem and used even Chatgpt, which gave me wrong answers.
I am at my wit's end, please help :)
/q means "Automatically perform requested actions and exit (main VeraCrypt window will not be displayed)"; if you don't specify /q, the action won't be performed!
You either specify /p "" or /tryemptypass, not both, with /q. That should work.
Thanks, that was it!
PS You don't need quotes around your paths, since they don't contain spaces; but you've not closed quotes in the keyfile path (according to your post).