Veracrypt "Error while parsing command line" Solved!

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 11105
Joined: 24 Jan 2010, 23:23
Location: paused.undefined.exposed

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
Entropy never sleeps