Results 1 to 3 of 3

Thread: renaming many files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    renaming many files

    I have a lot of files in a folder, and most of the filenames contain underscrolls _ how would i rename all the files without the underscrolls

    thanks

    -Dimava
    NXSupport - Your one-stop source for computer help

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    umm ok, what if i want to replace the _ with a space
    NXSupport - Your one-stop source for computer help

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    replace the If block in the middle with this
    VB Code:
    1. If InStr(1, MyName, "_", vbTextCompare) > 0 Then
    2.                 NewName = Replace(MyName, "_", " ")
    3.                 Name MyPath & MyName As MyPath & NewName
    4.             End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width