Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:52:04+00:00 2026-05-31T09:52:04+00:00

Thanks for any help that you can give me. I need a batch file

  • 0

Thanks for any help that you can give me. I need a batch file that can delete lines from a text file, each line begins with a time, and I need to delete everything between 5:00am and 11:00am, so that I can automate daily editing of the file. Please be gentle with me, as I am new to batch files;)

Here is an excerpt from the text file:

"04:52:46","","T03","DA3072","UNDER THE BRIDGE","RED HOT CHILI PEPPERS","04:22","00","","","","","","","","",""
"04:57:08","","TPR","VO0502","PROMOTION ROTATOR #5","","00:30","00","","","","","","","","",""
"04:47:00",".","COM","DALIVE",":47 $TOP$ET HOLDER","","04:00","00","","",":47 Stopset Holder","","","","","",""
"04:61:38","","TLN","VO0004","LEGAL ID # 4","","00:11","00","","","","","","","","",""
"04:61:49","","T00","DA0195","ALL ALONG THE WATCHTOWER","JIMI HENDRIX","03:51","00","","","","","","","","",""
"04:65:40","","T01","DA0795","HEY HEY MY MY (INTO THE BLACK)","NEIL YOUNG","05:01","00","","","","","","","","",""
"04:70:41","","TLN","VO6010","SHORT SWEEPER ROTATOR 5","","00:04","00","","","","","","","","",""
"04:70:45","","T00","DA0081","BURNING DOWN THE HOUSE","TALKING HEADS","03:44","00","","","","","","","","",""
"05:00:01","*","","","TOP HOUR SOFT SYNC","","00:00","00","","","TOP HOUR SOFT SYNC","","","","","",""
"05:00:00","","TLN","VO6006","SHORT SWEEPER ROTATOR 1","","00:04","00","","","","","","","","",""
"05:00:04","","T02","DA0916","THE HAPPIEST DAYS OF OUR LIVES / ANOTHER BRICK I","PINK FLOYD","05:38","00","","","","","","","","",""
"05:05:42","","T01","DA0496","TAKE THE LONG WAY HOME","SUPERTRAMP","04:42","00","","","","","","","","",""
"05:10:24","","TLN","VO6001","LONG SWEEPER ROTATOR 2","","00:08","00","","","","","","","","",""
"05:10:32","","T02","DA1004","I CAN'T DANCE","GENESIS","03:52","00","","","","","","","","",""
"05:14:24","","TLN","VO6009","SHORT SWEEPER ROTATOR 4","","00:04","00","","","","","","","","",""
"05:14:28","","T01","DA0790","DANCING DAYS","LED ZEPPELIN","03:39","00","","","","","","","","",""
"05:15:01","*","","",":15 SOFT SYNCH","","00:00","00","","","","","","","","",""
"05:18:07","","TLN","VO4013","ZZ TOP ROTATOR","","00:29","00","","","","","","","","",""
"05:18:36","","T01","DA0471","TUSH","ZZ TOP","02:12","00","","","","","","","","",""
"05:20:48","","TPR","VO0500","WEBSITE ROTATOR","","00:25","00","","","","","","","","",""
"05:17:00",".","COM","DALIVE",":17 $STOP$SET HOLDER","","04:00","00","","",":17 Stopset Holder","","","","","",""
"05:25:13","","TLN","VO6011","SHORT SWEEPER ROTATOR 6","","00:04","00","","","","","","","","",""
"05:25:17","","T00","DA0371","EVERY BREATH YOU TAKE","POLICE","03:58","00","","","","","","","","",""
"05:29:15","","T01","DA0806","IN THE CITY","EAGLES","03:37","00","","","","","","","","",""
"05:32:52","","TLN","VO6010","SHORT SWEEPER ROTATOR 5","","00:04","00","","","","","","","","",""
"05:32:56","","T00","DA0231","WHAT'S YOUR NAME","LYNYRD SKYNYRD","03:28","00","","","","","","","","",""
"05:30:05","*","","","Walton 5:30 Soft Synch","","00:00","00","","","Walton and Johnson","","","","","",""
"10:00:00","","T00","DA0388","LOVE BITES","DEF LEPPARD","05:31","00","","","","","","","","",""
"10:05:31","","T01","DA0459","THE GRAND ILLUSION","STYX","04:27","00","","","","","","","","",""
"10:00:01","*","","","TOP HOUR SOFT SYNC","","00:00","00","","","TOP HOUR SOFT SYNC","","","","","",""
"10:09:58","","TLN","VO6008","SHORT SWEEPER ROTATOR 3","","00:04","00","","","","","","","","",""
"10:10:02","","T03","DA3010","SMOKE ON THE WATER","DEEP PURPLE","07:07","74","C","","","","","","","",""
"10:17:09","","T01","DA0517","MISS YOU","ROLLING STONES","04:40","00","","","","","","","","",""
"10:21:49","","VTK","JBTIME","VOICETRACK JOIN BOTH","","00:30","00","","","Voicetrack JB Time","","","","","",""
"10:22:19","","T00","DA0038","TAKIN' IT TO THE STREETS","DOOBIE BROTHERS","03:29","00","","","","","","","","",""
"10:25:48","","TLN","VO6009","SHORT SWEEPER ROTATOR 4","","00:04","00","","","","","","","","",""
"10:25:52","","T01","DA0710","HIGHWAY TO HELL","AC/DC","03:27","00","","","","","","","","",""
"10:29:19","","VTK","JUTIME","VOICETRACK JOIN UP","","00:30","00","","","Voicetrack JU Time","","","","","",""
"10:29:49","","TPR","VO0024","PROMOTION ROTATOR #1","","00:34","00","","","","","","","","",""
"10:17:00",".","COM","DALIVE",":17 $STOP$SET HOLDER","","04:00","00","","",":17 Stopset Holder","","","","","",""
"10:34:23","","TLN","VO6011","SHORT SWEEPER ROTATOR 6","","00:04","00","","","","","","","","",""
"10:34:27","","T02","DA1155","NEW YEARS DAY","U2","05:28","00","","","","","","","","",""
"10:39:55","","T03","DA3050","EPIC","FAITH NO MORE","04:49","00","","","","","","","","",""
"10:30:00","*","","","BOTTOM HOUR SOFT SYNC","","00:00","00","","","BOTTOM HOUR SOFT SYNC","","","","","",""
"10:44:44","","TLN","VO6010","SHORT SWEEPER ROTATOR 5","","00:04","00","","","","","","","","",""
"10:44:48","","T01","DA0756","MAGIC CARPET RIDE","STEPPENWOLF","04:11","00","","","","","","","","",""
"10:48:59","","VTK","JUTIME","VOICETRACK JOIN UP","","00:30","00","","","Voicetrack JU Time","","","","","",""
"10:49:29","","TPR","VO0394","PROMOTION ROTATOR #3","","00:27","00","","","","","","","","",""
"10:34:00",".","COM","DALIVE",":34 $TOP$SET HOLDER","","04:00","00","","",":34 Stopset Holder","","","","","",""
"10:53:56","","TLN","VO6007","SHORT SWEEPER ROTATOR 2","","00:04","00","","","","","","","","",""
"10:54:00","","T00","DA0347","RHIANNON (WILL YOU EVER WIN)","FLEETWOOD MAC","04:01","00","","","","","","","","",""
"10:58:01","","TLN","VO6005","LONG SWEEPER ROTATOR 6","","00:08","00","","","","","","","","",""
"10:58:09","","T00","DA0253","ROXANNE","POLICE","02:59","00","","","","","","","","",""
"10:45:00","*","","",":45 SOFT TIME","","00:00","00","","","","","","","","",""
"10:61:08","","T03","DA3089","INTERSTATE LOVE SONG","STONE TEMPLE PILOTS","03:07","00","","","","","","","","",""
"10:64:15","","VTK","JUTIME","VOICETRACK JOIN UP","","00:30","00","","","Voicetrack JU Time","","","","","",""
"10:47:00",".","COM","DALIVE",":47 $TOP$ET HOLDER","","04:00","00","","",":47 Stopset Holder","","","","","",""
"10:68:45","","TLN","VO2006","LEGAL ID # 4","","00:11","00","","","","","","","","",""
"10:68:56","","T01","DA0624","DREAM ON","AEROSMITH","04:20","00","","","","","","","","",""
"10:73:16","","T00","DA0136","CROSSROADS","CREAM","04:08","00","","","","","","","","",""
"11:00:01","*","","","TOP HOUR SOFT SYNC","","00:00","00","","","TOP HOUR SOFT SYNC","","","","","",""
"11:00:00","","TLN","VO6008","SHORT SWEEPER ROTATOR 3","","00:04","00","","","","","","","","",""
"11:00:04","","T01","DA0835","PRIDE AND JOY","STEVIE RAY VAUGHAN","03:36","00","","","","","","","","",""
"11:03:40","","T03","DA1629","WE'RE NOT GONNA TAKE IT","TWISTED SISTER","03:28","00","","","","","","","","",""
"11:07:08","","VTK","JBTIME","VOICETRACK JOIN BOTH","","00:30","00","","","Voicetrack JB Time","","","","","",""

As you can see, the lines begin with a time, so I don’t think it would be too hard, but I need it to take everything between 5am and 11am out and then save the text file without those hours.

Thanks again!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:52:05+00:00Added an answer on May 31, 2026 at 9:52 am

    Greg says he came up with an answer, but he didn’t post it. So here is a simple solution using FINDSTR with regular expressions. The script expects the name of the file to process as the first (and only) argument.

    @echo off
    findstr /vrb /c:"\"0[56789]:^" /c:"\"10:^" "%~1" >"%~1.mod"
    move /y "%~1.mod" "%~1"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for any help in advance, I can't wrap my SQL skills around this
I have two long list, one from a log file that contains lines formatted
I need a function that can give me all possible combinations of a array
Still learning WPF....thanks for any help. Is there any way to Refactor this: <ListBox
I am using c# .net. Thanks in advance for any help. I have searched
I have a v. large text document (no file extension) that has information about
I have an .htaccess file that I'm trying to convert so it can be
I'm looking for a solid graphing plugin for JQuery that can give me an
As title Welcome any comment Thanks interdev
Is there any way to suppress Compiler warnings ?? Thanks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.