Jump to content
Macro Express Forums

How do I search for files?


Recommended Posts

Hi, I have a text file with file names (without paths) on each line. Now I would like to run through the list, one file name by one, and see if this file exists on my computer in a folder with several subfolders, and if the file name in the text file correspond to an actual file in one of the folders or subfolders, I would like to move it to another folder.


In my current "Macro Express development level" I have manage to open the text file, and then using the "If File Exist-command" to determin wether the file should be moved or not by the "Move File/Files-command".


However, I have manage to do this when having all the files that should be searched in one single folder only! I have not figured out how I can move the focus and have my macro look into another folder and then run through the file list again to see if any files in the list is in this folder, and when finishing processing that folder, moving on to the next and start all over again.


I would very much appreciate if someone can just point me in the direction of which commands to use (not writing the script!!!)!!!





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...