What happens if you:
SET VAR vsrcfilename = [the file name] SET VAR vdest = [the destination directory] SET VAR vcmd = ‘copy’&.vsrcfilename&vdest &cmd Emmitt Dove Converting Systems Architect Evergreen Packaging, Inc. [email protected] (203) 214-5683 m (203) 643-8022 o (203) 643-8086 f [email protected] From: [email protected] [mailto:[email protected]] On Behalf Of Bernard Lis Sent: Sunday, April 17, 2011 16:50 To: RBASE-L Mailing List Subject: [RBASE-L] - Re: copying a 3 component names file Thanks Alastair, This is the way the file comes to us, via FTP. I could manually rename it, but that won't work in a production environment. Usually we just process it and then delete it. Now the customer wants to save it in another folder before deleting it in the working folder and COPY just doesn't want to cooperate. ----- Original Message ----- From: Alastair Burr <mailto:[email protected]> To: RBASE-L Mailing List <mailto:[email protected]> Sent: Sunday, April 17, 2011 3:08 AM Subject: [RBASE-L] - Re: copying a 3 component names file Bernie, Long ago and far away I seem to remember that DOS had a limit on the length of the parameters used in the copy command. I _think_ that the total length of the filenames had to be less that 76 or 78 – ie something less that 80. Maybe it was a limit on each filename – so something less than 40. Your long filename is 42 characters long. You could try reducing the length to see if this is your problem. Back then, too, having two full stops in a filename would have been invalid. Regards, Alastair. From: Bernard Lis <mailto:[email protected]> Sent: Saturday, April 16, 2011 10:13 PM To: RBASE-L Mailing List <mailto:[email protected]> Subject: [RBASE-L] - Re: copying a 3 component names file This is what I get when I try to copy it: R>copy duns129868217.cmp.110413081445827211yP saveit -ERROR- Invalid source filespec (2281) Here is what is in the file: R>type duns129868217.cmp.110413081445827211yP 200001H14229905112986821700010017041311081013854M5.0 000 02000290121610142299051B233124 12986821700150652 010003 901E849 178068011 DSP 010004 677E2L1478000K638492L14 78000K63 849 010005 685EFD10A ----- Original Message ----- From: "Albert Berry" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Saturday, April 16, 2011 11:36 AM Subject: [RBASE-L] - Re: copying a 3 component names file > Bernie, the COPY command is supported by R:Base without needing to ZIP > to it. > COPY ThisReallyLong.HidingInASubdirectory.File.TXT LongFile.TXT > > On 15/04/2011 8:15 PM, Bernard Lis wrote: >> from the R> (or within a macro) I want to copy a file. The file name >> is a 3 component name like x.x.x except it is a very long name. >> I've tried zip copy and zip rollout copy >> But all I get is "program not found" >> >> Thanks in advance, >> Bernie Lis >> >> > >

