I am trying to rename multiple files with a bat file.
i use the below code and works fine.
for %%a in (*.csv) do ren "%%~a" "%%~na Sea %%~xa"
Although the problem is that the script will run every day and will gradually add multiple times the word "Sea"
I.E First Day File name = "ho.csv" Script runs the first day and the output is : "ho Sea.csv" Second day File name "ho Sea.csv", "Go.csv" Script runs the second day and the output is : "ho Sea Sea.csv", "Go Sea.csv"
I am not so experienced but most probable the solution would be easy something like an if to check the existing name...
Do you have any solution to propose regarding this?
Also is there any way to make the script run every day in a specific time?
Thank you in advance!!!
Aucun commentaire:
Enregistrer un commentaire