
Search found 3 matches
- 21 Jun 2015 10:28
- Forum: DOS Batch Forum
- Topic: FINDSTR passing file name dynamically using FOR LOOP
- Replies: 4
- Views: 5415
Re: FINDSTR passing file name dynamically using FOR LOOP
Thanks again... I will try debugging first approach further based on your inputs 

- 21 Jun 2015 09:38
- Forum: DOS Batch Forum
- Topic: FINDSTR passing file name dynamically using FOR LOOP
- Replies: 4
- Views: 5415
Re: FINDSTR passing file name dynamically using FOR LOOP
Thanks a lot Foxidrive for the solution..below code works well:
Just wondering what was going wrong in the first approach with one batch script?
Code: Select all
@echo off
for %%a in (*.xml) do batchone.bat "%%a"
Just wondering what was going wrong in the first approach with one batch script?
- 21 Jun 2015 03:44
- Forum: DOS Batch Forum
- Topic: FINDSTR passing file name dynamically using FOR LOOP
- Replies: 4
- Views: 5415
FINDSTR passing file name dynamically using FOR LOOP
I am stuck with below problem. I need to read multiple xml files in a directory & look for certain string. If the particular string is found certain lines from XML file needs to be copied and written to output file. Below script is working fine for a single file : setlocal EnableDelayedExpansion...