Hello:
I am doing programming work in Visual FoxPro (VFP), and I have been at it for so long that my brain is closing down
You are probably familiar with ShellExecute, which I am using to try to open a folder in Dopus (rather than in the default Windows Explorer). Here is the ShellExecute stuff:
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
Here is what I have in a VFP button
cFileName = "C:\Program Files\GPSoftware\Directory Opus\dopus.exe"
cAction = "open"
cParams = "D:\VFP Applications"
ShellExecute(0,cAction,cFileName,cParams,"",1)
When I click the button, DOpus indeed opens, but it opens folder "D:\VFP" (which does not exist, so it is empty), not the intended "D:\VFP Applications".
Would anyone know what I need to do to get it to open the correct folder? Maybe Dopus requires something else as parameters when opening a particular folder.
By the way, this works in Windows Command Prompt:
"C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "D:\VFP Applications"
but in ShellExecut, these two commands do not work:
cFileName = "C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "D:\VFP Applications"
cFileName = "C:\Program Files\GPSoftware\Directory Opus\dopus.exe D:\VFP Applications"
Grateful for some tips.
Hans L