{file$|ext} for Folders?

Hi, I'm using the following command to make a copy of a file:

copy as "{file$|noext} {date|yyyy-MM-dd} {time|HHmmss}.{file$|ext}" copyattr=yes copytime=yes here renamewhensame

With files it's works fine, so Test.txt would be copied to Test 2008-02-06 122334.txt.

With folders it gets obscure, for a folder named FOLDER it copies to FOLDER 2008-02-06 122334.FOLDER - what's wrong?

Thanks, V.L.

Hi,

Refer to this thread for some possible work arounds:

[url]Help with copy command, distguish between file and directory]