Skip to main content

Hi, 

 

May i know that how can i copy the whole folder contain to window PC from UNIX server using command. 


#AcuCobol

Hi, 

 

May i know that how can i copy the whole folder contain to window PC from UNIX server using command. 


#AcuCobol
C$COPY makes a copy of one file, so you’ll need to call it for each file in the directory. You can use C$LIST-DIRECTORY with C$COPY to accomplish that. Here are the links to the documentation on those routines:

documentation.microfocus.com/.../BKPPPPLIBRS067.html

documentation.microfocus.com/.../BKPPPPLIBRS047.html

Hi, 

 

May i know that how can i copy the whole folder contain to window PC from UNIX server using command. 


#AcuCobol
Hi DougP,

May i know that is there any another way we can download the whole folder content to local PC without using the list command and copy one by one?

Thanks You.

Hi, 

 

May i know that how can i copy the whole folder contain to window PC from UNIX server using command. 


#AcuCobol
I believe the C$LIST-DIRECTORY with C$COPY is the only way, in extend cobol, to copy an entire directory. A workaround is to archive the folder into a single file, copy it down to windows, then extract. To do that, you can use either the linux zip command and a corresponding unzip for windows, or use linux tar and a corresponding windows tar program.