I
I
im_dimas2018-06-18 15:18:12
cmd/bat
im_dimas, 2018-06-18 15:18:12

How to exclude from extension paths?

I need to find all files with .zip extension and display the paths to these files without extension in filelist.txt so that the file contains something like this

"C:\Users\***\Desktop\bat\1"
"C:\Users\***\Desktop\bat\2"

Looking for such a team
WHERE /F *.zip > filelist.txt

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2018-06-18
@dimas199862

dir /b/s "c:\temp\*.zip" >filelist.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question