Dim strCommand As String
Dim strVariableFrom, strVariableTo
strVariableFrom = "test.tif"
strVariableTo = "test.PDF"
strCommand = "c:\imagemagick\imagemagic\imconvert.exe" & " " & strVariableFrom & " " & strVariableTo
Shell ("Cmd /k" & strCommand)
The imconvert program uses to parameters from and to. It works from dos but can't get it working from access. The problem is the file names (strvariablefrom and strvariableto) have single quotes around them. Is there a way to send without the quotes? If not is there another way to run this executable program from access. It doesnt work as an activex in access 2010. It's registered fine but I get error activex control can't create object. Either way to get it working would be fine.
Dim strVariableFrom, strVariableTo
strVariableFrom = "test.tif"
strVariableTo = "test.PDF"
strCommand = "c:\imagemagick\imagemagic\imconvert.exe" & " " & strVariableFrom & " " & strVariableTo
Shell ("Cmd /k" & strCommand)
The imconvert program uses to parameters from and to. It works from dos but can't get it working from access. The problem is the file names (strvariablefrom and strvariableto) have single quotes around them. Is there a way to send without the quotes? If not is there another way to run this executable program from access. It doesnt work as an activex in access 2010. It's registered fine but I get error activex control can't create object. Either way to get it working would be fine.