Error while parsing command line ?

Topics: Technical Issues
Jul 18, 2015 at 5:21 PM
Since beta i have a problem to mount my drives manually. These are the lines:

@echo off

echo Starte automatisches Einbinden …

ping 111.111.11.111 -n 1 -w 1000 > nul
VeraCrypt.exe /cy /v\Device\Harddisk4\Partition1 /lG /q
ping 111.111.11.111 -n 1 -w 1000 > nul
VeraCrypt.exe /v\Device\Harddisk8\Partition2 /lH /q /cy
ping 111.111.11.111 -n 1 -w 1000 > nul
VeraCrypt.exe /v\Device\Harddisk5\Partition1 /lI /q /cy
ping 111.111.11.111 -n 1 -w 1000 > nul
VeraCrypt.exe /v\Device\Harddisk6\Partition2 /lJ /q /cy
ping 111.111.11.111 -n 1 -w 1000 > nul
VeraCrypt.exe /v\Device\Harddisk7\Partition1 /lK /q /cy

does someone has any idea ? it always says "error while parsing command line"
Coordinator
Jul 18, 2015 at 6:05 PM
As you can read in 1.12 beta release notes in Windows part:
  • Make command line argument parsing more strict and robust (e.g. /lz rejected, must be /l z)
In your command line, you are not putting a space between /l and the drive letter for example. This has never been documented that way and it was actually an issue with the parameter parsing.
Thus, you will have to use the correct syntax in your commands:
  • VeraCrypt.exe /c y /v\Device\Harddisk4\Partition1 /l G /q
  • VeraCrypt.exe /v \Device\Harddisk8\Partition2 /l H /q /c y
  • VeraCrypt.exe /v \Device\Harddisk5\Partition1 /l I /q /c y
  • VeraCrypt.exe /v \Device\Harddisk6\Partition2 /l J /q /c y
  • VeraCrypt.exe /v \Device\Harddisk7\Partition1 /l K /q /c y
Jul 19, 2015 at 8:27 AM
ahh, thanks. i already had a space between the /l but forgot about the other ones... thanks very much!