[quote="diegocr"]You're correct, i'm using two steps.
Toolbar button:
@nofilenamequoting
paren "{o}" "{s}" "{o|escwild}"
paren user-command:
@runmode hide
CD "&PATH&\"
paren.bat "&NAME&"
Copy MOVE "&PATH&\&NAMEE&\&NAMEE&*"
//DELETE "&PATH&\&NAME&" FORCE QUIET ALL
(Template: NAME/A,PATH/A,NAMEE/A)[/quote]
You may not need to escape anything but the last component of the path (I'm not sure, though). (On the other hand, if you need all parts of the path to be escaped, then the {s} part (PATH variable) would need it as well.)
There's also an extra \ or two in there since {s} will have a \ on the end. You might want to use {s|noterm} to prevent it and keep the slashes in the command itself for clarity.
By the way, you might want to make sure the delete line at the end is safe. I'm not sure exactly what this will be used on or where things are being moved to here, so it might not matter, but the example in the Buttons forum for moving things up one level has a discussion about why it may be better to use the DOS rmdir command to clean up folders after moving everything in them around. Using rmdir lets you avoid deleting directories which are not empty.
(In the "moving things up one level" case, you might have C:\A\A and move everything in C:\A up one level. You'll still have files in C:\A afterwards because the A directory got moved up one level.)