Search or Find Files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Search or Find Files

Post by fightcancer » Sat Feb 08, 2025 6:32 am

Does MS have any functionality to find files on a drive please?

Thanks.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1414
Joined: Sun Nov 03, 2002 3:19 am

Re: Search or Find Files

Post by Dorian (MJT support) » Sat Feb 08, 2025 10:36 am

It is possible to do that with GetFileList, but don't forget it's not recursive. There are examples in this forum for making it recursive though, so you should be able to adapt the example below to do that.

This example finds a file named "fish.txt"

Code: Select all

GetFileList>c:\0\*fis*.*,files

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Re: Search or Find Files

Post by fightcancer » Tue Feb 11, 2025 6:08 am

Thanks!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts