I will be using ZINT as my barcode generator in my Access program. I want to call it by using SHELL command from within Access VBA. My problem is, I can't call ZINT from command prompt. Here is my code.
Private Sub cmdTest_Click()
Dim strToPrint, strInfoBarcode As String
strInfoBarcode = "Batch #699"
strToPrint = "%ProgramFiles%\zint\zint.exe -o c:\path\699.png -b 58 --vers=10 -d " & strInfoBarcode
Call Shell("cmd.exe /S /K" & strToPrint, vbMinimizedNoFocus)
End Sub
When i run the above code, the error shows
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Could someone shows the right way to call the ZINT program from Access VBA?