Question : Find root name of file in DOS

How to get the root name of a file, using dos scripting?

Answer : Find root name of file in DOS

If by root name you mean the part before the .extension:

@echo off
for %%F in (*.txt) do @echo  %%~n
F
Random Solutions  
 
programming4us programming4us