INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Question: Expression in library tools  (Read 1442 times)

twistees

  • Recent member
  • *
  • Posts: 8
Question: Expression in library tools
« on: December 22, 2009, 02:43:36 pm »

I'm trying to replace spaces in my filenames (not directory names) with an underscore. The closest I got is using the "Library Tools > Rename, Move and Copy Files" and using the Filename Rule "Replace([Filename (name)], ,_)". Two questions:

1. I cannot seem to be able to replace a space with anything (maybe I am missing something, but I tried " ", ' ' and \  for the second parameter). What is the syntax to get MC to replace a space?
2. The extension part is replicated - getting .flac.flac. How can I avoid this?

Cheers,
Gordon
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71618
  • Where did I put my teeth?
Re: Question: Expression in library tools
« Reply #1 on: December 22, 2009, 02:49:50 pm »

Use another library tool, called "Find and Replace".  Try a few before you do very many.
Logged

twistees

  • Recent member
  • *
  • Posts: 8
Re: Question: Expression in library tools
« Reply #2 on: December 22, 2009, 03:05:04 pm »

Use another library tool, called "Find and Replace".  Try a few before you do very many.

Using the "Find and Replace" was also replacing spaces in the folder names with an underscore. Am I missing something obvious? :-(

Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71618
  • Where did I put my teeth?
Re: Question: Expression in library tools
« Reply #3 on: December 22, 2009, 03:07:03 pm »


2. The extension part is replicated - getting .flac.flac. How can I avoid this?
That may be an old build.  111 is at the top of this board.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71618
  • Where did I put my teeth?
Re: Question: Expression in library tools
« Reply #4 on: December 22, 2009, 03:11:13 pm »

Using the "Find and Replace" was also replacing spaces in the folder names with an underscore. Am I missing something obvious? :-(
Try checking Filename (name) only.  See attached picture.

Logged

twistees

  • Recent member
  • *
  • Posts: 8
Re: Question: Expression in library tools
« Reply #5 on: December 22, 2009, 03:15:11 pm »

Thanks. That was exactly what I needed - I was trying to use the "Find and Replace" under the "Rename ..." tool.

Gordon
Logged
Pages: [1]   Go Up