You don't have to do this manually. It's very simple to get all the filenames just by doing Select all -> hold shift -> right click -> copy as path
This puts all the filenames on your clipboard. You can paste it in and just delete the c:\blablabla\stuff
Or you can open in powershell, type ls and hold down ALT to select just the filenames, again copy and paste into the post.