"Invalid Names": insert "-" instead of space?

Support for Windows users
Post Reply
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

"Invalid Names": insert "-" instead of space?

Post by Biff »

Can one make FileBot to put e.g. a "-" in the file name instead of nothing, so e.g. instead of replacing the ":" with " " insert a "-": http://i.imgur.com/70iyJFw.png
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "Invalid Names": insert "-" instead of space?

Post by rednoah »

You can replace ":" with "-" in your format.
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: "Invalid Names": insert "-" instead of space?

Post by Biff »

Thank you, rednoah,

How could I do that?

Thanks again
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "Invalid Names": insert "-" instead of space?

Post by rednoah »

@see http://www.filebot.net/naming.html

e.g.

Code: Select all

{n.replace(':', '-')}
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: "Invalid Names": insert "-" instead of space?

Post by Biff »

Thank you very much, rednoah,

I have added it: {n} ({y}){' CD'+pi}{'.'+lang}{n.replace(':', '-')}

Many thanks again.
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "Invalid Names": insert "-" instead of space?

Post by rednoah »

Code: Select all

{n.replace(':', '-')} ({y}){' CD'+pi}{'.'+lang}
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: "Invalid Names": insert "-" instead of space?

Post by Biff »

Oops, wrong! Well, I do not have any idea of anything.

Thank you very much for the corrected code.

How could I remove the wrong code / lines: http://i.imgur.com/2VgZhgw.png
DEL does not appear to work. Or right click.
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "Invalid Names": insert "-" instead of space?

Post by rednoah »

You can't. It'll always remember the last few formats.
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: "Invalid Names": insert "-" instead of space?

Post by Biff »

Alright, thank you very much.
Newest portable, stable FileBot, Windows 10 Home, 64bit
Post Reply