IF _VFP.STARTMODE = 0 && running inside the Visual FoxPro IDE lcPath = LEFT(SYS(16,0), RAT("\", SYS(16,0), 2)) SET DEFAULT TO (lcPath) && Specifies the default drive and directory SET PATH TO (lcPath + ";Data\;Forms\;Help\;Images\;Libs\;Menus\;Progs\;Reports\") && Specifies a path for file searches ELSE lcPath = JUSTPATH(SYS(16,0)) SET DEFAULT TO (lcPath) && Specifies the default drive and directory SET PATH TO (lcPath + "Data\;Help\;Images\") && Specifies a path for file searches ENDIF