Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SOLVED: How *echo and *if can be unknown commands? ANSWER: If you’ve done setdos /x-1

Jul
532
10
I’m just curious how *echo and *if can be unknown commands. Ever.


1737728096891.webp


unknown command


1737727905343.webp
 
It is impossible for me to recreate this from a screenshot. Please put the command line in a code block or post a batch file with that echo command.
I can’t, because it was the result of letting my AI-transcription system run overnight in 5 or so tabs

One of them was hung the next morning with this in the output

Unfortunately I have accidentally closed the window since.....
[Apparently Microsoft finally fixed the "no *))$)$#)## confirmation when you hit Alt-F4" buti n the upcoming Windows Terminal release, just saw the issue closed this morning. Doesn’t help me now tho haha.]

the main 2 BAT files are >1000 lines each and >50 are used in the system, so it’s really hard to trace just how this happened.

I’ll keep my eye open for if this happens again.

But yea. I’m apparantly great at making things that shouldn’t happen happen. I probably should have been a tester instead of a developer in the past (Actually i did do a couple years of testing when the money was good)
 
It is impossible for me to recreate this from a screenshot. Please put the command line in a code block or post a batch file with that echo command.
And oh, sorry, I didn’t respond to what you said here and i should have:

i did post the BAT file - it’s the BAT file linked to in the post, the unknown_cmd.bat

 
Just as an aside,
you can disable commands such as ECHO using OPTION;
1737741355936.webp


No need to restart TCC,
as the change is immediate.

Joe
 
No need to restart TCC,
as the change is immediate.

Joe

I forgot about that!

That would be a possible explanation.

I’m definitely not doing that, but I wonder if it’s somehow being done, via memory leak or anything else.
Including me doing some dumdum stuff without realizing it!

That’s often the cause!

I just can’t figure it out this time. This really shouldn't happen. Maybe not ever, but it shouldn't happen in my situation.
 
And oh, sorry, I didn’t respond to what you said here and i should have:

i did post the BAT file - it’s the BAT file linked to in the post, the unknown_cmd.bat


I have your unknown_cmd.bat file, what I don't have is the oddball ECHO command you showed in your screenshot (with all the funky non-ASCII characters). I suspect something in that line was confusing the parser (or the parser was interpreting it correctly but not as you expected).

I can think of a dozen plausible & expected reasons for the errors you were seeing, but without the original command line they're simply SWAGs in this context.
 
I have your unknown_cmd.bat file, what I don't have is the oddball ECHO command you showed in your screenshot (with all the funky non-ASCII characters). I suspect something in that line was confusing the parser (or the parser was interpreting it correctly but not as you expected).

I can think of a dozen plausible & expected reasons for the errors you were seeing, but without the original command line they're simply SWAGs in this context.
A dozen!??!?! wow!

Here is the snippet of the (1400-line) Bat file where the echo is:


Code:
:we_decided_to_never_check_for_txtfile
:Force_AI_Generation
:AI_generation
echo ❇❇❇❇❇❇❇❇❇❇❇❇❇❇❇❇❇ AI generation! ❇❇❇❇❇❇❇❇❇❇❇❇❇❇ >nul
echo off


REM if a text file of the lyrics exists, we need to engineer our AI transcription prompt with it to get better results
        rem 2023 version: set CLI_OPS=
        rem Not adding txt to output_format in case there were hand-edited lyrics that we don’t want to overwrite already there
        rem CLI_OPS=--model large-v2 --output_dir "%OUTPUT_DIR%" --output_format srt --highlight_words True  --beep_off --check_files --sentence --standard       --max_line_width 99 --ff_mdx_kim2 --verbose True
        rem CLI_OPS=--model large-v2 --output_dir "%OUTPUT_DIR%" --output_format srt --highlight_words True  --beep_off --check_files --sentence --standard       --max_line_width 25 --ff_mdx_kim2 --verbose True
 

<etc>


And in case you’re wondering why i’m echoing to nul.... I do that a lot instead of REM because i can see the expanded variable values if echo is on, and nothing if echo is off.

And in case the character doesn’t display right in the forums, here it is:

1737746845296.webp


It’s a bit wide of a character given that it covers up the right bracket :)
 
I absolutely am doing setdos /x-1

Wow. Good call! I didn’t know it worked like that!

I’ll have to put a setdos /x0 at the beginning, then!
 
Back
Top