for /o:n (etc)

Apr 2, 2011
1,240
2
52
North Carolina, USA
Code:
[C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos]md temp

[C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos]set n=1 & for /o:n /h %fn in (*) ( ren "%fn" temp\%n%.%@ext[%fn] & set n=%@inc[%n] )
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_06_18_21_21_19_13AF4A38.PNG -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\1.PNG
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_06_18_21_21_19_37863BAE.JPG -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\2.JPG
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_06_18_21_21_19_A2011554.PNG -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\3.PNG
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_06_26_00_14_08_39B4E08A.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\4.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_02_08_37_28_E2B111AF.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\5.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_02_17_45_42_9CDA5E83.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\6.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_02_17_47_07_370DD801.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\7.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_05_13_30_26_FD3D3A33.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\8.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_09_23_19_14_62FBDAC8.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\9.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_09_23_19_14_25911F1B.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\10.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_10_01_33_09_122131FA.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\11.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_10_01_33_09_C0E56974.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\12.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_15_12_13_28_CB701CFC.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\13.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\2019_07_15_22_34_28_F1452DAE.jpg -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\14.jpg
     1 file renamed
C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp -> C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp\15
TCC: (Sys) The process cannot access the file because it is being used by another process.
 "C:\Users\Galloway\Desktop\Charles Browser Donloads\Photos\temp"
     0 files renamed       1 failed
it seems that when /o: is used it also includes dots.... folders.....

TCC 24.02.49 x64 Windows 7 [Version 6.1.7601]