移動檔案並保留同名文件

移動檔案並保留同名文件

我正在嘗試將文件移動到目錄。我想,如果有一個同名的文件,然後向其中添加數字或類似的內容,我想保留它們:-

move C:\Users\%username%\Desktop\*.jpg C:\Users\%username%\Desktop\photo\*

例如,移動文件後我想要什麼:

test.jpg    
test(1).jpg    
test(2).jpg    
scot.jpg    
scot(1).jpg
scot(2).jpg

相關內容