Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1711

for /l .....

$
0
0
The following line:

Code:
[CODE]
cdd c:\backup
for /l %n in (1,1,100) for /a:-d /r %fn in (*) if not isfile "\ZZZ_Backup\%@upper[%@ext["%fn"]]_%@format[03,%n]\%fn" move /a: /dd /e /h /md /mda "%fn" "\ZZZ_Backup\%@upper[%@ext["%fn"]]_%@format[03,%n]\
[/CODE]

1) I am still being prompted if the file exists in the destination, an thoughts?

2) I would like to remove empty dirs in C:\backup - I know it would be a command grouping but unsure how to code it

TIA !!

Viewing all articles
Browse latest Browse all 1711

Trending Articles