I would like to have an option to get all the files in the folder, just the names (no path and no extension) and sorted by name, in a simple batch file.
I know how to get all the names, but it's not sorted:
for %%i in (*.mxf) do @echo %%~ni >> names.txt
And I know how to get the names sorted, but it comes with the extension:
dir /b /o:n >> names.txt
How can I combine the two commands? Only the names and sorted.