Is there any way I can add some text (javascript) before it prints the list and some more after it?
So I'm trying to do this.
multiple lines of javascript at the begining of the file
the list of files returned from the batch file
some more lines javascript at the end of the file
This is the batch file I have that lists the files:
Code: Select all
@echo off &setlocal
>"list.txt" type nul
for /r "C:\Photos" %%i in (*.jpg *.bmp) do (
set "fname=%%~nxi"
set "fpath=%%~fi"
setlocal EnableDelayedExpansion
>>"list.txt" echo "!fname!" "!fpath:\=/!"
endlocal
)
Pretty new to batch files so any help would be greatly appreciated.