Saved Bookmarks
| 1. |
Solve : rename xml using specific node variable position.? |
|
Answer» HELLO friends I am trying to rename a group of xml files based on a specific node, which always changes position. So far I have the following CODE that always works and cueando the position is fixed but as I say the position I need is variable. The node that I need is the ONE that I set in image noIdentificacion = this work with same position echo off for /f "delims=" %%Z in ('dir /b *.xml') do ( for /f "tokens=12 delims== " %%A in ( 'find /i "noIdentificacion=" ^< "%%Z"' ) do REN "%%Z" "%%A.xml" ) I hope and they can support me. Thank you. [attachment deleted by admin to CONSERVE space] |
|