Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

PDIR to list filenames without extensions?

Aug
132
4
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.
Code:
pdir /(@name[*])
 

Similar threads

Back
Top