batch script strip off extension

March 14, 2009 at 06:13:19
Specs: Windows Vista
Hi! all,

I am looking for a DOS batch script that can do the following but with strip off extension.

dir/b *.ext > list.txt

now what I want is that the content of list.txt will have a list of files without the .ext extension.

See More: batch script strip off extension

Report •

March 14, 2009 at 08:36:47
Found it, the answer is only here, just tried to search for it thoroughly.

@FOR /f "delims=" %%? IN ('DIR/b *.frm') DO @ECHO/%%~n? >>d:\listfrm.txt

Report •
Related Solutions

Ask Question