>How do I eliminate the main desktop screen of Visual Foxpro 5 in distributing ny application & the exe created doesn't work on its own from a shortcut created on the desktop of win'95 o/s i.e I have to give the full path of the vfp.exe along with the application exe path.
It sounds like you haven't installed the VFP runtime environment along with the executable, or that you haven't got a runtime environment that is self-sustaining.
If the .EXE starts on its own but terminates immediately, you most likely will need to include a READ EVENTS statement in your main module. You'll need to get the .EXE working without the VFP development environment running, unless you're going to have each user buy a legal copy of VFP.
You can suppress the main VFP window by including SCREEN=OFF in the CONFIG.FPW used by the VFP executable. In the case of a compiled app run on its own, you can embed CONFIG.FPW in the app itself, or put a CONFIG.FPW in the startup directory for the app, or point to one using the -c command line parameter. If ypu're starting up an .EXE within the VFP development envirnment, the embedded CONFIG.FPW is not an option; you must have one in the default location, or in the location specified by the environment variable, or specify one using the -c command line parameter.