Adding Spaces in a Batch Rename User Command
Posted: 21 Feb 2012 19:59
I am having a a terrible time figuring out what should be a fairly small task.
I am trying to create a user defined command which would rename file(s) as a batch rename without preview as follows:(note the spaces between the "*", the "-", and the date pattern.
When I try to run it via the user defined commands, it gets all crazy.
If I use the following pattern:
with the user command set to Batch Rename. Show preview. I get the correct filename change:
But my goal is to keep from having to preview every time and to simply run a keyboard shortcut.
With it set Batch Rename. No preview. I get this:
I have figured out that the issue appears to be the spaces " ". But try as I might, I cannot figure out how to insert a space character without having it repeat the pattern. I also cannot figure out why showing the preview has any impact on this.
Due to file-naming conventions at my office, I cannot substitute a "_" or other character for the spaces, so is there a way for me to achieve this with a user defined command?
I have read everything on here I could find about this, (Including: • http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=6352 • http://www.xyplorer.com/xyfc/viewtopic. ... atch+space • http://www.xyplorer.com/xyfc/viewtopic. ... name+space • http://en.wikipedia.org/wiki/Regular_expression • http://www.regular-expressions.info/) but can't seem to find an answer.
Any help is greatly appreciated.
I am trying to create a user defined command which would rename file(s) as a batch rename without preview as follows:
- Filename: File.txt
- Desired Rename: File - 02-21-12.txt
Code: Select all
* - <date mm-dd-yy> When I try to run it via the user defined commands, it gets all crazy.
If I use the following pattern:
Code: Select all
* - <date mm-dd-yy> Code: Select all
File - 02-21-12.txtWith it set Batch Rename. No preview. I get this:
Code: Select all
File - 02-21-12 - 02-21-12.txtDue to file-naming conventions at my office, I cannot substitute a "_" or other character for the spaces, so is there a way for me to achieve this with a user defined command?
I have read everything on here I could find about this, (Including: • http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=6352 • http://www.xyplorer.com/xyfc/viewtopic. ... atch+space • http://www.xyplorer.com/xyfc/viewtopic. ... name+space • http://en.wikipedia.org/wiki/Regular_expression • http://www.regular-expressions.info/) but can't seem to find an answer.
Any help is greatly appreciated.