Search found 3 matches

by Craw
20 Dec 2021 13:16
Forum: DOS Batch Forum
Topic: Obtaining one .dwg file from each directory in a list
Replies: 5
Views: 3355

Re: Obtaining one .dwg file from each directory in a list

Thank you for your reply @Compo, unfortunately after making those changes, I still receive the same errors. @echo off cls setlocal enabledelayedexpansion FOR %%G IN (DirList.txt) DO ( for /f "eol=? delims=" %%F in ('dir "%%G\*.dwg" /b /o-n') do set "File=%%F" echo !File!>>"C:\Users\Craw\250\Last250L...
by Craw
20 Dec 2021 08:18
Forum: DOS Batch Forum
Topic: Obtaining one .dwg file from each directory in a list
Replies: 5
Views: 3355

Obtaining one .dwg file from each directory in a list

Hi, I have a list of directories that each contain several .dwg files. I would like to get the file path of one .dwg from each folder in the list and make a new list of these files for later processing. Both lists are stored in text files. DirList.txt contains the input directories and 250List.txt c...