Search found 2 matches

by sysadmin
10 Oct 2009 11:02
Forum: DOS Batch Forum
Topic: advanced batch problem
Replies: 2
Views: 4051

avery_larry Thanks for your reply. I've found something that worked for me. Here is the code: @echo off for /f "delims=" %%f in ('dir /b *.xml') do ( FOR /F "tokens=2 delims=><" %%i in ('findstr "<name>" %%f') do ( mkdir %%i move %%f %%i ) ))
by sysadmin
09 Oct 2009 07:45
Forum: DOS Batch Forum
Topic: advanced batch problem
Replies: 2
Views: 4051

advanced batch problem

Hi there, I'm looking for an advanced batch. I have a folder with xml files. In the content of these files there is a unique customername. What i would like is to have a batch file that crawls through the folder and find the customername in the xml file. If the name is found, the file should be move...