I have a lot of files named "1.json", "2.json', "3.json" and so on I need a script to add "#" symbol before each filename
I'm very new to batch scripts, I only just find someone's scripts and try them without understanding how it really works I found this one:
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
SET old=5
SET new=#5
for /f "tokens=*" %%f in ('dir /b *.json') do (
SET newname=%%f
SET newname=!newname:%old%=%new%!
move "%%f" "!newname!"
)
But I don't understand how to use it when all my filenames are different and don't have any similar words