one last question I hope - i have been running these in a .bat file in the same folder where the files are located. how do you i specify the folder (c:\data\etc) in the commands you've provided?
Something like this...
You put it in front of the filespec for the source files
for %a in ("C:\data\apple\orange\*.txt") do crlf %a 182 /c /s2 /ff%a /dff%a /d
I presume your crlf program will take path names in its parameters
so you'd put the path in the appropriate place
for %a in ("C:\data files\path has spaces\apple\orange\*.txt") do crlf %%a 182 /c /s2 /"C:\data\pear\so does this one\banana\ff%%a" /d
note where I use quotes
In a batch you can open out the loop using brackets which can make it easier to visualise what's going on. You can have multiple lines.
For example
for %%a in ("C:\data files\path has spaces\apple\orange\*.txt") do (
echo source file is %%a
echo target file is C:\data\pear\so does this one\banana\ff%%a
crlf %%a 182 /c /s2 /"C:\data\pear\so does this one\banana\ff%%a" /d
)