Sending parameters to DOS fromMSAccess

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
dendic
Posts: 1
Joined: 2013-04-11T08:08:33-07:00
Authentication code: 6789

Sending parameters to DOS fromMSAccess

Post by dendic »

I send this to DOS from Access:

Dim strCommand As String
Dim strVariableFrom, strVariableTo As Variant
strVariableFrom = "test.tif"
strVariableTo = "test.PDF"
strCommand = "c:\imagemagick\imagemagick\convert.exe" & " " & strVariableFrom & " " & strVariableTo
Shell ("Cmd /k" & strCommand)


When it gets to the DOS prompt it looks like this and fails:
convert.exe 'test.tif' 'test.pdf'
Note the single quotes.
Post Reply