troubleshooting Question

Batch script with RegEx and time

Avatar of bemara57
bemara57 asked on
Windows Batch
2 Comments1 Solution1949 ViewsLast Modified:
I am reading matches from a text file that returns lines with names, tabs and times. I'm using findstr to do this. Here's what I'm doing:

E:\Test>findstr /B /I "MP Scheduled Scan" test.txt
MP Scheduled Scan                        5/29/2008 1:56:00 AM   Ready

From the result above, how can I get just the time part of it and convert it to military time?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros