* May need to change following line to point at correct VFP8 home dir #define ICOFILE "C:\Program Files\Microsoft Visual FoxPro 8\Graphics\Icons\Misc\BULLSEYE.ICO" erase testxx.exe erase testxx.pj? CREATE PROJECT testxx nowait TEXT TO lcText NOSHOW * _screen.Icon = ICOFILE MESSAGEBOX('test') endtext DELETE FILE testxx.prg ?STRTOFILE(lcText,'testxx.prg',0) _vfp.ActiveProject.files.add('testxx.prg') _vfp.ActiveProject.Icon = ICOFILE ?_vfp.ActiveProject.Build('testxx.exe',) _vfp.ActiveProject.close lcRuncmd ="! /n "+SET("Default")+CURDIR()+'testxx.exe' &lcRuncmd returnWhat does this code do for you?