From: Harald O. <har...@el...> - 2015-08-19 21:00:07
|
Am 19.08.2015 um 16:14 schrieb Claridge, Timothy: > I'm trying to create a bar code using the CLI. I'm sending from LabVIEW into command line which is why I need to use "cmd /c". But I am testing all these commands manually to cmd prompt. > > Main point: > > - It seems like the CLI only allows quotes around one set of values. If quotes are around more than one thing, then it throws an error. > > The following does not work > cmd /c c:\test folder\zint.exe -t > cmd /c "c:\test folder\zint.exe" -b 58 -d "hello world" > > > The following does work > cmd /c c:\test\zint.exe -t > cmd /c "c:\test folder\zint.exe" -t > cmd /c "c:\test folder\zint.exe" -b 58 -d Hello > cmd /c c:\test\zint.exe -b 58 -d "Hello World" > > > Observations: > > - If I have spaces in the destination path then I need "quotes", but if I also have spaces in the data parameter, the CLI does not seem to like that I have quotes. > > > - If I do not have spaces in the destination path, but have spaces in the data parameter. I put quotes around the data and things work. > > > Timothy Claridge Timothy, sorry for this observation. I don't think this is a zint issue, but I did not try. I don't know labview, but with TCL exec command, it is always a good idea to use the command "start" (first parameter "" for the unused window title): start "" "c:\test folder\zint.exe" -b 58 -d "hello world" In addition, you may try the executable at: http://www.eurodatacouncil.org/images/downloads/zint-dmre_2015-05-29.zip This is only for debug to check if recent bug-fixes have removed the error. This version contains DMRE extension, so take care with DataMatrix. Hope this helps, Harald |