* cTempDir is defined earlier in the program Declare Sleep IN WIN32API Integer cFoxToolsName = cTempDir + "FT" + Sys(3) + ".FLL" nNothing = Sleep(1000) Copy File FoxTools.FLL to ( cFoxToolsName ) Set Library to (cFoxToolsName) AdditiveI think another advantage to doing it this way is that if your stuff is a COM object itself and might be instanced multiple times each instance can have its own copy and instances won't step on each other.