This is pretty much the approach I use; however, I have and extra step at the top where I check if the target directory exists. If it exists it continues, if It does not, it creates the target directory.
I have documents that are stored externally, and the file name includes the date and time, and they are stored in subdirectories with the year as the directory name, so will not end up as an ever growing directory full of files. It limits the number of files and makes it easy to find files from outside the application (Win Explorer). Javier, Javier Valencia, PE 14315 S Twilight Ln Olathe, KS 66062 913-915-3137 From: [email protected] <[email protected]> On Behalf Of Bruce Chitiea Sent: Tuesday, June 27, 2023 3:48 PM To: [email protected] Subject: Re[2]: [RBASE-L] - Copy of files suddenly stops working This test rig works: SET TRACE ON CLEAR VAR vjim_% SET VAR vjim_source TEXT = 'D:\TESTBED\HUMPTY\*.*' SET VAR vjim_target TEXT = 'D:\TESTBED\DUMPTY\*.*' SET VAR vjim_testFiles TEXT = (.vjim_source & .vjim_target) SET VAR vjim_testCopy TEXT = ('COPY' & .vjim_testFiles) &vjim_testCopy SET TRACE OFF RETURN Best to you, Bruce Bruce A. Chitiea | SafeSectors, Inc. 112 Harvard Ave #272 | Claremont CA 91711-4716 | USA +011 (909) 238-9012 m | [email protected] <mailto:[email protected]> ------ Original Message ------ >From "'jim schmitt' via RBASE-L" <[email protected] ><mailto:[email protected]> > To "[email protected] <mailto:[email protected]> " <[email protected] <mailto:[email protected]> > Date 6/27/2023 8:51:55 AM Subject Re: [RBASE-L] - Copy of files suddenly stops working Hi, Nicky, and Good Mornin: Thanks for the suggestion, which I tried this AM. Sorry NO GO. Sample of trace attached. Jim: On Monday, June 26, 2023 at 02:49:18 PM EDT, Nicky Avery <[email protected] <mailto:[email protected]> > wrote: Jim, On 26/06/2023 15:01, 'jim schmitt' via RBASE-L wrote: The command is: COPY C:\UBILL\*.* &VF _TO I think you have lost a chunk of code and a period. You're trying to get COPY to execute an ampersand variable and I don't believe it will. However, if you put in a period between the & and VF_TO, I think you will be in good shape. SET VAR VF_TO TEXT = ('COPY C:\UBILL\*.*' & . VF_TO) &VF_TO Nicky -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/571540a1-00c7-25f5-19ed-b60cca353f1b%40wwavs.com <https://groups.google.com/d/msgid/rbase-l/571540a1-00c7-25f5-19ed-b60cca353f1b%40wwavs.com?utm_medium=email&utm_source=footer> . -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/59576400.5812273.1687881115328%40mail.yahoo.com <https://groups.google.com/d/msgid/rbase-l/59576400.5812273.1687881115328%40mail.yahoo.com?utm_medium=email&utm_source=footer> . -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/em71f3d6d3-b289-4f1c-9fcd-9bd9505e0f43%409135c88d.com <https://groups.google.com/d/msgid/rbase-l/em71f3d6d3-b289-4f1c-9fcd-9bd9505e0f43%409135c88d.com?utm_medium=email&utm_source=footer> . -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/173501d9aa15%2450e859a0%24f2b90ce0%24%40vtgonline.com.

