We had a similar question back in August 2016; the poster concluded that a drive letter makes him happy. That doesn't work for me:
C:\tmp\tt> for %f in (1 2 3 4 5 6) do echo foo > a%f
C:\tmp\tt> dir
Volume in drive C is OS Serial number is 566b:ed1e
Directory of C:\tmp\tt\*
2017-07-08 00:24 <DIR> .
2017-07-08 00:24 <DIR> ..
2017-07-08 00:24 5 a1
2017-07-08 00:24 5 a2
2017-07-08 00:24 5 a3
2017-07-08 00:24 5 a4
2017-07-08 00:24 5 a5
2017-07-08 00:24 5 a6
30 bytes in 6 files and 2 dirs 24'576 bytes allocated
245'771'546'624 bytes free
C:\tmp\tt> ren ::a(.*) ::\1 /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
C:\tmp\tt> ren "::a(.*)" "::\1" /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
C:\tmp\tt> ren "c:\tmp\tt\::a(.*)" "::\1" /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
I seem to recall that this worked in a previous major release, 18 or 19 or so. Now I use:
TCC 21.00.31 x64 Windows 10 [Version 10.0.15063]
TCC Build 31 Windows 10 Build 15063
Thanks,
Felix.
C:\tmp\tt> for %f in (1 2 3 4 5 6) do echo foo > a%f
C:\tmp\tt> dir
Volume in drive C is OS Serial number is 566b:ed1e
Directory of C:\tmp\tt\*
2017-07-08 00:24 <DIR> .
2017-07-08 00:24 <DIR> ..
2017-07-08 00:24 5 a1
2017-07-08 00:24 5 a2
2017-07-08 00:24 5 a3
2017-07-08 00:24 5 a4
2017-07-08 00:24 5 a5
2017-07-08 00:24 5 a6
30 bytes in 6 files and 2 dirs 24'576 bytes allocated
245'771'546'624 bytes free
C:\tmp\tt> ren ::a(.*) ::\1 /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
C:\tmp\tt> ren "::a(.*)" "::\1" /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
C:\tmp\tt> ren "c:\tmp\tt\::a(.*)" "::\1" /n
TCC: (Sys) There are no more files.
"C:\tmp\tt\::a(.*)"
0 files would be renamed
I seem to recall that this worked in a previous major release, 18 or 19 or so. Now I use:
TCC 21.00.31 x64 Windows 10 [Version 10.0.15063]
TCC Build 31 Windows 10 Build 15063
Thanks,
Felix.