oFSO = CREATEOBJ('Scripting.FileSystemObject') IF ! oFSO.FolderExists(tdy_bakpth) oFSO.CreateFolder(tdy_bakpth) ENDIF>I've tried enough permutations of this structure, and i know there is a simple script object replacement that works more reliably. Can you post the code to fix this immediately, and a reference to learn more about the script objects in general? (i'd rather any alternative than using Foxpro for the nitty-gritty specifics like this)