OK< I started this in another post, but it has come down to being a coding problem. So I thought I would post that part here....... I am opening a program via the path (photo programs) and also opening the image (also via path)
As below
Now for most photo programs this works fine..... But a few I try... MS Paint and Gimp as 2 examples won't work.
If I drop the "imagepath" part the programs will open... But together, adding the "imagepath", it causes errors.
Is there another way to approach this to get around this problem? And why is it a problem in the first place?
Thanks
As below
Code:
Private Sub cmdRun_Click()
On Error GoTo Err_cmdRun_Click
Dim stAppName As String
stAppName = ([txtPathToProg] & " " & [imagepath])
Call Shell(stAppName, 1)
Exit_cmdRun_Click:
Exit Sub
Err_cmdRun_Click:
MsgBox Err.Description
Resume Exit_cmdRun_Click
Now for most photo programs this works fine..... But a few I try... MS Paint and Gimp as 2 examples won't work.
If I drop the "imagepath" part the programs will open... But together, adding the "imagepath", it causes errors.
Is there another way to approach this to get around this problem? And why is it a problem in the first place?
Thanks