Does File Exist with wildcard

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

Does File Exist with wildcard

Post by mdavtec »

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

Post by FrancescoT »

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
Post Reply