Search found 23 matches

by mjfoxtrot
11 May 2020 01:55
Forum: DOS Batch Forum
Topic: Delete Files After Processing FFmpeg Conversion
Replies: 1
Views: 586

Re: Delete Files After Processing FFmpeg Conversion

Actually, I figured it out. This deletes the files after they are processed by FFmpeg. It was simpler than I thought. H: cd \Convert\Input for %%f in (*.mkv) do ( "C:\ProgramsMJ\winff\ffmpeg.exe" -itsoffset -0.275 -i "%%~nxf" -y -crf 20.0 -vcodec libx264 -filter:v scale=1280:720 -preset slow -acodec...
by mjfoxtrot
10 May 2020 15:30
Forum: DOS Batch Forum
Topic: Delete Files After Processing FFmpeg Conversion
Replies: 1
Views: 586

Delete Files After Processing FFmpeg Conversion

Hi, Novice batch user here, but I follow directions well. I am using the excellent FFmpeg open-source video and audio converter. My batch file works fine for automating conversion of .MKV files to .MP4 so that my son can put his favorite shows on his PlayStation Vita (yes, it's an old gadget, but he...
by mjfoxtrot
07 Apr 2015 06:21
Forum: DOS Batch Forum
Topic: Batch file for parsing names out of text files
Replies: 6
Views: 1752

Re: Batch file for parsing names out of text files

Very nice, foxidrive. I added findrepl.bat to my path, that is definitely a keeper The only thing that your batch file does not do that ShadowThief's does is to include the text file name in the output. It only lists the folder where the text file is contained, but does not include the name of the t...
by mjfoxtrot
07 Apr 2015 05:25
Forum: DOS Batch Forum
Topic: Batch file for parsing names out of text files
Replies: 6
Views: 1752

Re: Batch file for parsing names out of text files

Yup, I am using a weird third-party shell, and I should have thought of that as the reason for why the find command was not working right. I adjusted the batch file to call find with the c:\windows\system32\find.exe, as you recommend, and it worked perfectly. The text file is created EXACTLY as I ne...
by mjfoxtrot
07 Apr 2015 04:22
Forum: DOS Batch Forum
Topic: Batch file for parsing names out of text files
Replies: 6
Views: 1752

Re: Batch file for parsing names out of text files

Thanks for the help, ShadowThief. Unfortunately I get an "invalid predicate error" when running that batch file. The syntax of the error is:

find: invalid predicate '-Pitchers-'
find: invalid predicate '-----'
by mjfoxtrot
07 Apr 2015 01:55
Forum: DOS Batch Forum
Topic: Batch file for parsing names out of text files
Replies: 6
Views: 1752

Batch file for parsing names out of text files

I've had wonderful help on this board before and I am hoping someone might have a solution for my latest quandary. Please bear with my long-winded explanation, as I want to make sure that I'm including all relevant information. My goal: a batch file that will go through the box scores generated by m...
by mjfoxtrot
04 Dec 2014 11:48
Forum: DOS Batch Forum
Topic: Special character is befuddling my batch file
Replies: 4
Views: 1587

Re: Special character is befuddling my batch file

Yep, problem solved. As usual, you guys provided me the necessary insight to solve the problem almost instantly. The problem was with a comspec command that I was using in a VBA script to build my web pages. For instance, the comspec line that I had been using was this, which basically merged togeth...
by mjfoxtrot
04 Dec 2014 04:43
Forum: DOS Batch Forum
Topic: Special character is befuddling my batch file
Replies: 4
Views: 1587

Special character is befuddling my batch file

I produce HTML pages for my web site using various batch files. For some reason on the bottom of several pages, there is a special character (at least, that is what it seems to be to me) that looks like a thin line with a small arrow pointing to the right. I would paste the character on this post, b...
by mjfoxtrot
31 Jul 2014 10:16
Forum: DOS Batch Forum
Topic: Space-Time Continuum Problem
Replies: 5
Views: 1805

Re: Space-Time Continuum Problem

All three solutions posted here solved my problem. That's what I call service . . . thanks very much to all three responders. Foxidrive, I definitely think the 'wmic OS Get localdatetime' method is the most elegant way to deal with the problem, and it worked like a charm. That's a keeper and I'll be...
by mjfoxtrot
31 Jul 2014 01:42
Forum: DOS Batch Forum
Topic: Space-Time Continuum Problem
Replies: 5
Views: 1805

Space-Time Continuum Problem

Okay, so this is not really a true time-space continuum problem, but the issue I am having does involve a batch file with time references and spaces that foul them up. Here's the issue: I run a simple batch file to make some critical backups of mainly text and zip files. The script works well and ma...
by mjfoxtrot
26 Jun 2014 11:21
Forum: DOS Batch Forum
Topic: DOS Baseball League Line Score Help
Replies: 8
Views: 1766

Re: DOS Baseball League Line Score Help

The land down under, eh? In that case, my DOS baseball league won't have any appeal. I'll get to work on starting up a DOS rugby league ;)
by mjfoxtrot
26 Jun 2014 04:11
Forum: DOS Batch Forum
Topic: DOS Baseball League Line Score Help
Replies: 8
Views: 1766

Re: DOS Baseball League Line Score Help

Holy Smokes! That worked PERFECT! I plopped a bunch of series folders into the parent directory and let your script have at them. It immediately produced exactly what I was looking for: IND @ BCB: GAME1.TXT: TEAM 1 2 3 4 5 6 7 8 9 R H E DATE/TIME IND @ BCB: GAME1.TXT: Colts 0 0 0 0 1 0 0 4 0 5 8 2 0...
by mjfoxtrot
26 Jun 2014 03:33
Forum: DOS Batch Forum
Topic: DOS Baseball League Line Score Help
Replies: 8
Views: 1766

Re: DOS Baseball League Line Score Help

The code tags are NOT correct . . . for some reason, they are not including the first two lines, and hence, that is why you are getting different output from the script. The code tags are excluding the first few lines, namely, this: ************************************ BOXSCORE *********************...
by mjfoxtrot
26 Jun 2014 02:10
Forum: DOS Batch Forum
Topic: DOS Baseball League Line Score Help
Replies: 8
Views: 1766

Re: DOS Baseball League Line Score Help

Hi Foxidrive, Here's a sample of a typical box score .txt file: ************************************ BOXSCORE ******************************* TEAM 1 2 3 4 5 6 7 8 9 R H E DATE/TIME Dragons 0 0 1 0 0 0 0 0 0 1 5 0 04-28-14 Redbirds 0 0 0 0 0 0 0 0 0 0 2 0 9:14pm Bangor Last Dragons Pos AB R H 2B 3B H...
by mjfoxtrot
25 Jun 2014 19:23
Forum: DOS Batch Forum
Topic: DOS Baseball League Line Score Help
Replies: 8
Views: 1766

DOS Baseball League Line Score Help

Sorry for the length of this request, but I thought it would be best to explain my dilemma. I have a batch file that I cobbled together that does the basics of what I need for my DOS baseball league (yes, believe it or not, we have 30 guys who play 162 games each using an MS-DOS program.) But I coul...