I am trying to copy several files from a network to the C drive. I am currently using this code.
FileCopy "N:\tam\ins.dbf", "C:\Horizon\ins.dbf"
This works sometimes on some files but not on others. I am copying all the files by just changing the 'ins' to whatever the dbf file I am copying is. I can copy all the files manually but I can not get my code to copy them for me. The files that do not always copy give me an error message that says #70 permisson denied. Is there a way to set permissions in the code so that the files will always copy or is there something else I might be missing?
Thanks
FileCopy "N:\tam\ins.dbf", "C:\Horizon\ins.dbf"
This works sometimes on some files but not on others. I am copying all the files by just changing the 'ins' to whatever the dbf file I am copying is. I can copy all the files manually but I can not get my code to copy them for me. The files that do not always copy give me an error message that says #70 permisson denied. Is there a way to set permissions in the code so that the files will always copy or is there something else I might be missing?
Thanks