Jump to content
Macro Express Forums

Convert Windows filename to all lowercase?


myztalk112

Recommended Posts

In Windows Explorer, manually place mouse over file name, click once to select the name. You could use other techniques, manual or macro-driven to do the selection.

 

Macro can then do this:

Type <ALTD>f<ALTU>m which highlights the name to be changed.

Clipboard Copy the highlighted name.

Set String T1 from clipboard.

Variable Modify String: Lowercase %T1%

Text Type T1 which overtypes the highlighted name.

Text Type <ENTER>

  • Like 1
Link to comment
Share on other sites

<F2> does the same thing as <ALTD>f<ALTU>m

 

...and is less likely to misfire.

 

Do you also want to lowercase the file extension? Because if you do, you may need to do something like this...

 

Text Type <F2> ' select the name

TextType <SHIFT><END> ' extend selection to include the extension

Clipboard Copy ' the selected name

Set String %T1% from clipboard

Variable Modify String: Lowercase %T1%

Text Type %T1% ' type over the selected name

Text Type <ENTER>

 

If you want the macro to be ready to do the same thing to the next file, add this line:

 

Text Type <DOWN>

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...
×
×
  • Create New...