Hi Terry,
If it's a space in the directory name, tt's easy to fix by enclousing into double quotes.
lcMBXLoc = ["c:\program files\myapp\etc"]
lcMBXLoc = ["] + JUSTPATH(_VFP.ServerName) + "\mPLANMap.mbx" + ["]
>
>The .mbx runs fine when invoked stand-alone (it is effectively an .exe), wherever it is.
>
>When I run the .exe., in \program files\myapp\ I still get the error, even though I've included the .mbx in the same dir as the .exe., and lcMBXLoc = "c:\program files\myapp\etc".
>Thing is, maybe the "oShell.Run( ( lcMBXLoc), 1, .T.)" just can't handle the space in the dir path. What do you think?
>
>
>
>>
>>My suggestion was for runtime only.
>>Would it work if you navigate in Windows Explorer to the mPLANMap.mbx file and double click on it? If it doesn't than you've to install some application (MapInfo?) that'll be associated with .mbx extension.
>>
--sb--