[PATHS]
myhomepath=C:\neil\
mydatapath=U:\neildbf\
Then put this code in a procedure / program in your applicationPARAMETERS cSection, cEntry, cINIFile LOCAL cDefault, cRetVal, nRetLen cDefault = "" cRetVal = space(255) nRetLen = LEN(cRetVal) DECLARE integer GetPrivateProfileString IN WIN32API ; STRING cSection, ; String cEntry, ; STRING cDefault, ; STRING @cRetVal, ; INTEGER nRetLen, ; STRING cINIFile nRetLen = GetPrivateProfileString(cSection,; cEntry, ; cDefault, ; @cRetVal, ; nRetLen, ; cINIFile) return left(cRetVal,nRetLen)Then just call it when the user starts the application:
lcpath = ALLTRIM(READINI( "PATHS", "myhomepath", "C:\myapp\myapp.INI")) set path to &lcpathHope this helps.