Hey everyone, My current .batch is extracting specific values from XML files which I need. The problem is that I only need the values/data from todays date . Therefore, it should only extract from the newest XML files. (from today) The Code: @echo off & setlocal enabledelayedexpansion (for /F &q...
hey penpen I suspect you just don't belive me (whyever)?! not at all ! I'am just really unexperienced in .bat and therefore I missunderstand still a lot. I honestly appreciate all your help and patience with me. I tried your "mybatAnd.bat" again. Gives me: ERROR: Invalid argument/option - ...
ok, I think this is getting out of hand since I didn't made my point clearly I think. I'am really sorry for this. Thousands of XML files are genereted each day and I just need specific ones. Moreover I just need those from todays date. XML files from yesterday or so aren't in my interest. XML files ...
This worked perfectly ! Thank you so much ! @echo off & setlocal enabledelayedexpansion & rem only guessing (for /F "tokens=1,2 delims=<>" %%a, in ('findstr "Name=\"PHIL\" currentState=\"Executive13\"" *.xml') do ( set "list=%%b" for /F "...
Hey all again , I'm having a problem with my batch script. I am trying to extract the time & date but due to the colon it gives me an incomplete date & time. Here's the script: (for /F "tokens=1,2 delims=:<>" %%a, in ('findstr "Name=\"PHIL\" currentState=\"Execu...
Thank you so much for your effort. Unfortunately I forgot to mention an important detail. My bad sorry The .batch should extract only the newest date, (todays date) since thousands of XML files are genereted every day. How do I modify my.bat with your code (OR & AND) if I don"t use findstr?...
Hello everyone, I'am really new to .batch, so please bear with me I have thousands of XML files but only certain need to be moved into another folder. To speed up the process it only needs to read and extract the first 10 lines since the information I need is given at the very begining. My batch fil...