Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

program that erases empty spaces in files names?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

program that erases empty spaces in files names?

Old 01-04-04, 04:00 PM
  #1  
Senior Member
Thread Starter
 
Join Date: Feb 2003
Posts: 744
Likes: 0
Received 0 Likes on 0 Posts
program that erases empty spaces in files names?

I've got a bunch of mp3s and some of them have extra spaces after their files names. i.e.
incubus - megalomaniac .mp3

is there a program that will erase these extra spaces or do i have to manually do it? thanks

Last edited by sureAV421; 01-04-04 at 04:10 PM.
Old 01-04-04, 07:37 PM
  #2  
Senior Member
 
Join Date: Mar 2003
Posts: 789
Likes: 0
Received 0 Likes on 0 Posts
Just use excel, and create the following macro:

Sub removeSpaces()
Dim origFile As String
Dim newFile As String
Dim pathLocation As String

pathLocation = "C:\Data\clipped\"

origFile = Dir(pathLocation & "*.*")

While origFile ""
newFile = Replace(origFile, " ", "")
Name pathLocation & origFile As pathLocation & newFile
origFile = Dir
Wend

End Sub

Yours,

Lolarennt
Old 01-04-04, 07:46 PM
  #3  
DVD Talk Platinum Edition
 
Join Date: Feb 2001
Posts: 3,393
Likes: 0
Received 0 Likes on 0 Posts
But wouldn't that remove ALL the spaces?

incubus - megalomaniac .mp3
would become
incubus-megalomaniac.mp3

I have written a VB program that can do what you want. If you are interested, I can email it to you. It doesn't accept wildcards, but you can specify to change multiple characters like " .mp3" to ".mp3" (that would keep the other spaces in the file names intact), or more complicated things like "chop2" to "Chopin - Opus 2", or "%20" to " ".
Old 01-04-04, 08:48 PM
  #4  
Senior Member
 
Join Date: May 2002
Location: Emerson College - Boston, MA
Posts: 433
Likes: 0
Received 0 Likes on 0 Posts
I use A.F.5 Rename Your Files - I use it to rename my mp3s all the time.

http://www.fauland.com

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.