Does File Exist with wildcard

Got a problem you cannot solve? Try here.
mdavtec
Posts: 31
Joined: Wed Jan 20, 2016 2:59 pm

Does File Exist with wildcard

Postby mdavtec » Thu Sep 15, 2016 7:11 am

I'm adding code to copy files, if exists, to a backup folder. I want to check if a folder has any file with .log extension. I'm trying to use "Does File Exist" with wildcard (*.log). but it doesn't like it. Any alternative to "Does File Exist" command? Any suggestion?

Thanks
ExchA

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Does File Exist with wildcard

Postby FrancescoT » Thu Sep 15, 2016 11:25 am

Dear Mdavtec,

of course you cannot use Wildcards with the "Does File Exist" command.

You should use the "Find All Files" command instead ... and this will accept wildcards.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 226 guests