Hello, You can do something like this: OPEN '.' TO CurDir ELSE STOP 201,'.'
SELECT CurDir and then inspect the results in a LOOP WHILE READNEXT. Mike From: jbase@googlegroups.com <jbase@googlegroups.com> On Behalf Of wsw Sent: 18 August 2021 13:54 To: jBASE <jbase@googlegroups.com> Subject: Get a list of files in a directory? Does anyone have an example of how I can loop through a directory and get all the file names? Thanks in advance. -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to jBASE@googlegroups.com<mailto:jBASE@googlegroups.com> To unsubscribe, send email to jbase-unsubscr...@googlegroups.com<mailto:jbase-unsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2FjBASE%3Fhl%3Den&data=04%7C01%7Cmikes%40jbase.com%7C09072fa17acb4cd1843a08d962573a5d%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C1%7C637648954424275517%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8yXPRLWxx%2FTUI6Bi4cPJgvpZIZiz%2Fmr%2FaxN5VUlgUFs%3D&reserved=0> --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscr...@googlegroups.com<mailto:jbase+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/84f34e49-f9d7-400b-a895-99de735156afn%40googlegroups.com<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjbase%2F84f34e49-f9d7-400b-a895-99de735156afn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cmikes%40jbase.com%7C09072fa17acb4cd1843a08d962573a5d%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C1%7C637648954424275517%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1xk7vgpnclFH%2Fa1Ig%2FCZAqxVA41Sj7ZGoLrOfiuU8qk%3D&reserved=0>. -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to jBASE@googlegroups.com To unsubscribe, send email to jbase-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/CO6PR18MB4483D687302202197505F877B3FF9%40CO6PR18MB4483.namprd18.prod.outlook.com.