I am trying to rename all the file in a folder using this:
@echo off
setlocal EnableDelayedExpansion
for "%file_path_history%" %%a in (*.*) do (
if not "%~nx0"=="%%a" ren "%%a" "%fullstamp%_%%a"
)
But it returns an error message:
path was unexpected at this time.
I have also tried
ren "%file_path_history%*.*" "%file_path_history%%fullstamp%_*.*"
but it does not work.
Any suggestion?
file_path_history
andfullstamp
?