[Gambas-user] Find files without extensions using LIKE

Ingo bm.530502 at gmail.com
Tue Oct 17 22:52:10 CEST 2017


Am 17.10.2017 um 22:28 schrieb Moviga Technologies:
>
> Hi!
>
> Is it possible to get all files without extensions using Dir()?
>
> This does not work: *[^.]*
>
>
>
> --------------------------------------------------
>
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
>
> Hosted by https://www.hostsharing.net
Hi,
maybe this helps:

Dim sFile As String
   For Each sFile In Dir(User.Home)
       Print File.BaseName(sFile)
   Next

Regards
Ingo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20171017/c56acdba/attachment.html>


More information about the User mailing list