Veracrypt "Error while parsing command line" Solved!

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 16411
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Veracrypt "Error while parsing command line" Solved!

Post by ChrisGreaves »

This cost me twenty minutes or so.
I am modifying my Auto.bat, switching from TrueCrypt to VeraCrypt. This is bad:-

Code: Select all

If not exist T: "C:\Program Files\VeraCrypt\VeraCrypt.exe" /q /LT /V\Device\Harddisk1\Partition4
Up pops a bland box "Error while parsing command line".
The trick is to insert a <space> character between the "/L" and the "T".
Same for the "/v" parameter and, I suspect, all other parameters. This is good:-

Code: Select all

If not exist T: "C:\Program Files\VeraCrypt\VeraCrypt.exe" /q /L T /V \Device\Harddisk1\Partition4
I must have missed that in the documentation.

FWIW TrueCrypt did NOT require spaces:-

Code: Select all

"C:\Program Files\TrueCrypt\TrueCrypt.exe" /q /LT  /V\Device\Harddisk0\Partition2
Cheers
Chris
Most of my hair had already fallen out by the time I learned that mousse is spelled with two esses