|Im using a batch file so that I can generate a text file that lists all the files in a folder. I just right click on the folder and click "generate" (I have added a context menu to the right click menu that executes the .bat file)|
I'm working with these commands:
dir /a /b /-p /o:gen >"C:\WINDOWS\Temp\filelisting.txt"
copy "C:\WINDOWS\Temp\filelisting.txt" %1
That works perfectly, and lists all the files that are in the folder and lists them in a text file e.g.
but I was wondering if the list can be made without any file extensions included/listed, e.g.
I know that *.* will exclude extensions normally in DOS, but it doesnt seem to work anywhere in the above command.
Can anyone please assist? I have been stuck on this one trying to get it to work.