Jump to content

Folder Renaming


KeelBug

Recommended Posts

Hey all... just wondering if anyone can nudge me in the right direction.

Cutting right to the chase, I have the need to rename a whole wad of folders in the same directory.

Basicly...

From: BBB_BBB_-_CCCC_CCC_CCC-(AAAAAA)-Dddd-####-XX

To: [AAAAAA][D] BBB BBB - CCCC CCC CCC (####)

A, B & C - Both text and numerical characters, varies in length.

Dddd - Just text but only interested in the first letter, varies in length.

# - Always a number, 4 digits.

X - Not needed, varies in length.

_ - Converted to spaces.

I'm currently starting to learn VBScript and know how to do a simple find and replace but not sure exactly how to go about rearrange variables.... I assume VBS is the easiest way to approach this.

Any help is appreciated muchly.

Cheers.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...