batch – Is there way to create a text log file of files in a directory in Windows 10?

I am 7zip-ing files for archiving, this presents a problem of not being able to find a file (in those zipped files) if I search in windows, if I could create a text file, that lists all the files in the zip file that will be stored in the same folder it would make it easier.

I use a BAT file to automate the zippping

for /d %%X in (*) do "c:Program Files7-Zip7z.exe" a "%%X.7z" "%%X" -mx=9

I’m not sure if this can be edited to add the creation of text file as well.