Page 1 of 1

Adding Spaces in a Batch Rename User Command

Posted: 21 Feb 2012 19:59
by lawvol
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:
  • Filename: File.txt
  • Desired Rename: File - 02-21-12.txt
I can accomplish this with the standard batch rename function by entering the following pattern:

Code: Select all

* - <date mm-dd-yy> 
(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:

Code: Select all

* - <date mm-dd-yy> 
with the user command set to Batch Rename. Show preview. I get the correct filename change:

Code: Select all

File - 02-21-12.txt
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:

Code: Select all

File - 02-21-12 - 02-21-12.txt
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=6352http://www.xyplorer.com/xyfc/viewtopic. ... atch+spacehttp://www.xyplorer.com/xyfc/viewtopic. ... name+spacehttp://en.wikipedia.org/wiki/Regular_expressionhttp://www.regular-expressions.info/) but can't seem to find an answer.

Any help is greatly appreciated.

Re: Adding Spaces in a Batch Rename User Command

Posted: 21 Feb 2012 20:19
by nas8e9
I've tried it with my regular config and can't reproduce. Could you try the following standard troubleshooting steps:
1. run the latest beta (if not already) from here;
2. run XYplorer with a clean profile as described here.

Re: Adding Spaces in a Batch Rename User Command

Posted: 21 Feb 2012 20:36
by Stefan
Both works fine for me:
lawvol wrote: If I use the following pattern:

Code: Select all

* - <date mm-dd-yy> 
with the user command set to Batch Rename. Show preview.
With it set Batch Rename. No preview.
I get the correct filename change:

Code: Select all

File - 02-21-12.txt

There should be no different results by using preview or not.
No glue. Maybe an misconfigured template? But...OTOH... "with preview" it works...?


First of all questions every time:
Which XYplorer version do you use?

And maybe this will help to get on the right track:
Which OS version / bit / UAC / Admin?
Where is that file to be renamed located? Local HDD / Net share / USB?

Re: Adding Spaces in a Batch Rename User Command

Posted: 21 Feb 2012 22:52
by lawvol
System Specs:
  • XYp 10.80.0200
  • Win7 Prof 64bit
  • Administrative Rights Enabled with UAC all but turned off
Files I am attempting to rename are located on a server, but the same occurs on my desktop hard drives (of which there are 6)

Re: Adding Spaces in a Batch Rename User Command

Posted: 21 Feb 2012 23:53
by nas8e9
lawvol wrote:System Specs:
  • XYp 10.80.0200
  • Win7 Prof 64bit
  • Administrative Rights Enabled with UAC all but turned off
Files I am attempting to rename are located on a server, but the same occurs on my desktop hard drives (of which there are 6)
Thank you for the info. Your XYplorer version isn't quite the latest, could you try the latest beta from here? (In general, XYplorer beta's are quite safe.)

Also, could you try with a clean profile by following the steps described here?

Re: Adding Spaces in a Batch Rename User Command

Posted: 22 Feb 2012 14:44
by lawvol
nas8e9 wrote: Thank you for the info. Your XYplorer version isn't quite the latest, could you try the latest beta from here? (In general, XYplorer beta's are quite safe.)

Also, could you try with a clean profile by following the steps described here?
Well, I tried the "virgin" install test and still got the same result on Batch Rename No Preview: "File - 02-22-12 - 02-22-12.txt".

I'll go ahead and try the beta and see what happens there and will let you know.

Thanks for the help...

Re: Adding Spaces in a Batch Rename User Command

Posted: 22 Feb 2012 15:59
by lawvol
Okay, I finally figured out the problem -- it is an interaction with a text expander I use called ActiveWords (http://activewords.com). Somehow, when the XYp command runs it is triggering an ActiveWord string. ActiveWords, however is indispensable in my workflow, so I need to figure out what is calling on it.

Thus, is there anyway for me to get the actual lines passed to the computer when then XYp command runs? In otherwords, the exact string of code, not just the date pattern? If I can get that, I can figure out what the conflict is.

Sorry for all the "chasing rabbits"