Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Listing a Folder's contents

$
0
0

Additional info

I got it going this morning and it works really well

Superfast actually

I started with Jerry's code from community.microfocus.com/.../10363.aspx

And I re-wrote it to suit my style e.g. I use MOVE instead of SET - MOVE is faster I think

And I used Chris's input and I also read KarlRainer's comments and made my own version from those 3 inputs

I delete files, not copy them, at the moment

It will delete 121 small files, one at a time, in way less than one second

I read the pre-determined folder and then decide whether to issue a DELETE or not based on the actual filename's prefix

It doesn't put the deleted files in the Recycle Bin yet (and I do want that feature) so I will add a step to COPY into there just before the DELETE

I didn't code the CBL_DIR_SCAN_END step and it doesn't matter in my case because I'm only doing one scan

Thanks for the help with this


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>