wxWidgets/distrib/msw/expdwild.bat
Bryan Petty 3ca6a5f046 second merge of the 2.2 branch (RL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-08 06:11:51 +00:00

16 lines
441 B
Batchfile
Executable File

@echo off
rem Expands wildcards in response file (arg 1) into output file (arg 2)
rem Note: requires ls.exe from GNU-WIN32 distribution, renamed to ls2.exe.
rem Correction: this is too slow, so we're using the built in 'dir'.
set newname=%temp\temp.tmp
sed -e "s/\//\\/g" %1 > %newname
set len=%@LINES[%newname]
rem set len=%@DEC[%len]
do i = 0 to %len by 1
set line=%@LINE[%newname,%i]
if NOT "%line" == "" dir /FB %line >> %2
enddo