PDIR to list filenames without extensions?

Aug 28, 2008
Maybe there's an obvious way to do this that I'm missing, but the PDIR command would seem like precisely the right tool to get a list of filenames without the extensions, yet I find no way to do this. I know I can use a for loop (for %f in ("*.*") do @echo %~nf), but I thought maybe either DIR or PDIR would allow this. Yes? No? Maybe? Thanks in advance.
PDIR lets you use functions in the format string, and the function you want to strip off extensions is @NAME.
pdir /(@name[*])

Thank you! I knew there had to be a way. I read over the help and missed the bit about calling functions. Thanks!

Similar threads