Jump to content
Macro Express Forums

Can ME find the file extension type?


patgenn123
 Share

Recommended Posts

Hello all!

 

I was wondering if doing a repeat loop through file names that I could find the file .ext of whatever file in a specific folder?

 

Let's say I am repeating with Folder and looping to find file names and looking specifically for the extensions i.e. .doc, .xls. pdf etc. I am not actually looking for specific file extensions rather I want ME to tell me what they are(for each file).

 

Can ME do this?

 

Thanks!

 

-P

Link to comment
Share on other sites

Yes, Macro Express will do this. Use the Repeat with Folder command and save the file name to a variable such as T1.

 

Then use the Variable Set from File Path command to save the file extension to a variable such as T2. Enter %T1% in the Filename/Path field if you saved the file name in the previous command to T1.

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.

Guest
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.

Loading...
 Share

×
×
  • Create New...