 |
| Finding the path to the VFP executable running |
User rating: 0/10 (0 votes) | | |
|
 |
 |
 |
DECLARE INTEGER GetModuleHandle IN kernel32;
INTEGER lpModuleName
DECLARE INTEGER GetModuleFileName IN kernel32;
INTEGER hModule,;
STRING @ lpFilename,;
INTEGER nSize
hModule = GetModuleHandle(0)
lpFilename = SPACE(250)
lnLen = GetModuleFileName (hModule, @lpFilename, Len(lpFilename))
? Left (lpFilename, lnLen)
|
 |
User rating: 0/10 (0 votes) | | | 335 bytes Created: 2001-08-03 12:00:00 Modified: 2011-02-16 07:03:31 Visits in 7 days: 118 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
Depending on OS, VFP version running, and differently for run-time and command window mode you may get various results:
c:\vfp\vfp.exe
c:\winnt\system32\vfp300.esl
c:\Program Files\Microsoft Visual Studio\VFP98\VFP6.Exe
...
* * *
? _vfp.servername
|
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|