MESSAGEBOX("2:30 changes") SET SAFETY ON && this does show the files in My Data Sources my_directory = 'c:\documents and settings\a1bg1\my documents\MY DATA SOURCES\*.*' gnDbcnumber = ADIR(gaDatabase, my_directory, 'DSH') FOR nCount = 1 TO gnDbcnumber && Loop for number of databases MESSAGEBOX("file or folder - " + gaDatabase(nCount,1) +CHR(13) + ; "attributes - " + gaDatabase(nCount,5)) ENDFOR && this did create the directory1.txt in My Dataq Sources DIR LIKE 'c:\documents and settings\a1bg1\my documents\my data sources\*.*' to FILE 'c:\documents and settings\a1bg1\my documents\my data sources\directory1' && this does not perform the copy lcfile='c:\documents and settings\a1bg1\my documents\aaa.doc' && aaa.doc exists lcnewfile='c:\documents and settings\a1bg1\my documents\my data sources' COPY FILE (lcfile) TO (lcnewfile) ** this delete works DELETE FILE 'c:\docume~1\a1bg1\mydocu~1\my data SOURCES\eee.doc' && this works goWordApp = createobject("Word.Application") word_directory = 'c:\' goWordApp.ChangeFileOpenDirectory (word_directory) ctemplate_name = 'r:\templates\r08\L_iborfrm.doc' ** this copy is the Real copy - it does not work COPY FILE 'r:\templates\r08\rt_lettr.dbf' TO 'c:\documents and settings\a1bg1\my documents\\MY DATA SOURCES' goWordApp = createobject("Word.Application") ** file does not exist my_data_source = 'c:\docume~1\a1bg1\mydocu~1\my data sources\rt_lettr.dbf' IF !FILE(my_data_source) MESSAGEBOX("File does not exist - " + ALLTRIM(my_data_source)) endif if file(ctemplate_name) goWordApp.Visible = .T. goWordApp.documents.open(ctemplate_name) gowordapp.Application.WindowState = 1 gowordapp.activewindow.windowstate = 3 &&maximized if creccount != 0 && Word give an error if you try to merge and your datasource is empty gowordapp.activedocument.mailmerge.destination = 0 && to a new document goWordApp.ActiveDocument.MailMerge.Execute endif else goWordApp.Visible = .T. gowordapp.Documents.Add gowordapp.Application.WindowState = 1 gowordapp.activewindow.windowstate = 1 &&maximized goWordapp.ActiveDocument.MailMerge.MainDocumentType = 0 && set as a mail merge form document goWordapp.ActiveDocument.MailMerge.OpenDataSource(cdatasource) &&attach the mail merge document to the datasource goWordapp.Activedocument.SaveAs(ctemplate_name) endif if gowordapp.Application.WindowState <> 1 gowordapp.activewindow.left = 0 gowordapp.activewindow.top = 0 endif wait "" timeout 10 && give client time to click on word, so any messageboxes from realtrac will not make realtrac the active task release goWordApp return>Can you post your actual code?