I was hoping there was a way to do it without using shell [...] I really don't like using SHELL.
Steve presented a solution for exactly that in the second reply to your post.
One of the issues with SHELL, and why it should always be avoided, is that it's not multiplatform. I believe Steve's dirent.h solution should compile in mingw but it's not something that I have personally tested. FreeBASIC has a built-in multiplatform solution with its DIR function, https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDir. This is a good model for a potential QB64 variant if anyone's willing to implement it.
Hi Vince. Yes, Steve library works under Linux. Second... Upgrading the FILES command promised Galleon. But the promise was forgotten. So i am glad for Steve helped us. Also Eoredson do very good and useful DIR / Files browsing program, but this is based on Windows libraries, so work not under Linux.
Hi Vince. Yes, Steve library works under Linux. Second... Upgrading the FILES command promised Galleon. But the promise was forgotten. So i am glad for Steve helped us. Also Eoredson do very good and useful DIR / Files browsing program, but this is based on Windows libraries, so work not under Linux.
Yes it should work on linux and mac but I was wondering if it works on windows too. Most likely a separate implementation of DIR/FILES/etc will be required for each platform.