Thanks for your detailed answer.
With today's files I mean last modified.
Though I tried around with dir and didn't work so far . I'll keep on trying.
Search found 14 matches
- 23 May 2017 02:41
- Forum: DOS Batch Forum
- Topic: Extract Values From Todays Date
- Replies: 5
- Views: 5387
- 21 May 2017 21:46
- Forum: DOS Batch Forum
- Topic: Extract Values From Todays Date
- Replies: 5
- Views: 5387
Re: Extract Values From Todays Date
You can find todays files here: dir /a-d /od /t[cw] *.xml | findstr %date%
Thank you for your quick response !
Pardon me. I'am really new to programming and .batch.
Where do I have to add this code properly?
- 21 May 2017 20:26
- Forum: DOS Batch Forum
- Topic: Extract Values From Todays Date
- Replies: 5
- Views: 5387
Extract Values From Todays Date
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...
- 04 May 2017 20:41
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
Wow, I feel really relived.
It works perfeclty now.
Guess it was really my own mistake. Didn't read the instuctions clearly
Thank you so much for your support ! Highly , highly appreciated !
It works perfeclty now.
Guess it was really my own mistake. Didn't read the instuctions clearly
Thank you so much for your support ! Highly , highly appreciated !
- 03 May 2017 20:23
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
Yes I saw your last post.
cmd gives me for date: 05/04/2017
cmd gives me for date: 05/04/2017
- 03 May 2017 00:00
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
It still won't work for me. gives me the same errors as mentioned before.
those XML files are also dated with their time, if it matters...
e.g: 5/3/2017 11:20 AM.
If there is more data , which might help, I'd gladly provide.
those XML files are also dated with their time, if it matters...
e.g: 5/3/2017 11:20 AM.
If there is more data , which might help, I'd gladly provide.
- 01 May 2017 22:22
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
Hey elzooilogico,
thanks for your reply also.
It gives me;
ERROR: Invalid date specified.
Could it be that mabe my system date differs ?
System Date is :05/02/2017
Best
thanks for your reply also.
It gives me;
ERROR: Invalid date specified.
Could it be that mabe my system date differs ?
System Date is :05/02/2017
Best
- 01 May 2017 21:20
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
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 - ...
- 27 Apr 2017 23:17
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
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 ...
- 27 Apr 2017 20:59
- Forum: DOS Batch Forum
- Topic: Batch File Colon Problem
- Replies: 3
- Views: 4888
Re: Batch File Colon Problem
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 "...
- 26 Apr 2017 23:17
- Forum: DOS Batch Forum
- Topic: Batch File Colon Problem
- Replies: 3
- Views: 4888
Batch File Colon Problem
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...
- 26 Apr 2017 21:54
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
thanks for the response !
Yes, both attributes occur always on the same line.
So it must be AND.
It doesn't work for me somehow. May you explain me what exactly I have to modify?
I'am sorry for asking this
Yes, both attributes occur always on the same line.
So it must be AND.
It doesn't work for me somehow. May you explain me what exactly I have to modify?
I'am sorry for asking this
- 25 Apr 2017 21:47
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Re: Move newest XML files by reading first lines
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?...
- 25 Apr 2017 03:11
- Forum: DOS Batch Forum
- Topic: Move newest XML files by reading first lines
- Replies: 25
- Views: 19381
Move newest XML files by reading first lines
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...