**** Get \All Users\Application Data (XP) or ProgramData (Vista, 7) folder DECLARE INTEGER SHGetSpecialFolderPath IN Shell32.DLL INTEGER, STRING @lcPath, INTEGER, INTEGER lcPath = SPACE(255) IF SHGetSpecialFolderPath(0, @lcPath, 35, 0) == 1 lcPath = ALLTRIM(lcPath) lcPath = ADDBS(TRIM(lcPath,1,CHR(0)))+[Naomi\] TRY *** Just in case the folder exists MD (lcPath) CATCH ENDTRY ** Test for copy file COPY YourFile.TXT TO (lcPath+"Test.TXT") ** Test for delete the file ERASE (lcPath+"Test.TXT") ENDIF