Search found 177 matches

by Jer
20 Sep 2023 18:50
Forum: DOS Batch Forum
Topic: [solved] cmd window only displays 16 colors with O/S reinstall
Replies: 5
Views: 6943

Re: cmd window only displays 16 colors with O/S reinstall

More updates finally finished. Turning off firewall and virus scan may have helped. When I did a successful update, I did not realize that more updating was needed for "security and features" as warned in Windows Updates screen. Apparently using sequence codes in batch does not require the registry ...
by Jer
19 Sep 2023 14:29
Forum: DOS Batch Forum
Topic: [solved] cmd window only displays 16 colors with O/S reinstall
Replies: 5
Views: 6943

Re: cmd window only displays 16 colors with O/S reinstall

ShadowThief, thanks for your advice. Windows updated to version 10.0.14393. PC has been rebooted. I do know how or where to find settings that would display more than 16 colors with RGB sequence codes, in the cmd window from batch. Display Settings changes made no difference. Still not resolved. edi...
by Jer
17 Sep 2023 21:10
Forum: DOS Batch Forum
Topic: [solved] cmd window only displays 16 colors with O/S reinstall
Replies: 5
Views: 6943

[solved] cmd window only displays 16 colors with O/S reinstall

I have been experiencing issues with my desktop (Win 64 bit) requiring 2 boot-ups because of screen blinking, for several months, and finally I could not boot at all and repair failed many times. Then I used DELL repair tools to reinstall Windows and wipe the hard disk of everything. Now I find that...
by Jer
18 Jun 2023 18:32
Forum: DOS Batch Forum
Topic: count characters of a input string in batch file
Replies: 4
Views: 5993

Re: count characters of a input string in batch file

Are there not 3 special cases? Adding an asterisk increases the lower count.
Adding a special case for asterisk counts it as a special character.

Code: Select all

 
 ...
   ) else if "%%a" equ "*" (
      set /A special+=1
  ...
       
Jerry
by Jer
10 Apr 2022 15:53
Forum: DOS Batch Forum
Topic: Play One Song at a Time
Replies: 5
Views: 8119

Re: Play One Song at a Time

Didn't know about irfanview playing audio files and I just hammered this out until it worked. Another part of this scheme could be to sort the playlist in random order before playing. Jerry @echo off setlocal set "musicpath=c:\music\" set "pListpath=%muspath%myplist.m3u" set "prg=c:\program files\ir...
by Jer
11 Feb 2022 14:54
Forum: DOS Batch Forum
Topic: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)
Replies: 16
Views: 42144

Re: AutoMenu.bat: simple multi-level menu system (with a coherent help on Windows-DOS commands)

What would be an example command to AutoMenu.bat?
My entry on a Windows 10 PC in the cmd window from the directory where your files are stored c:\AMenu

automenu c:\temp 2- FILE
Environment variable option[ not defined
followed by continuous looping of the error message.
Thanks.
by Jer
01 Jul 2021 22:59
Forum: DOS Batch Forum
Topic: batch to search for duplicate letters in string
Replies: 7
Views: 6651

Re: batch to search for duplicate letters in string

Understood. I thought that a line of code to display %% if found doubled in the string might be helpful.
My thinking was that literal doubled percents, like all other characters, but maybe not quotes, are a target for identification.
:)
Jerry
by Jer
01 Jul 2021 14:56
Forum: DOS Batch Forum
Topic: batch to search for duplicate letters in string
Replies: 7
Views: 6651

Re: batch to search for duplicate letters in string

aGerman, how does your code, typed out below, display %% for you and not for me? :o c:\Temp\Dosbatch>testAG 88 && Press any key to continue . . . c:\Temp\Dosbatch>type testag.bat @echo off setlocal DisableDelayedExpansion set "str=R#6-O0W9OXRi&FQSf1&ZcBJlwhE886D%%2CZ+-L7B+Z2khH1UG3NbDC&&Xj@TvS!DVEA1...
by Jer
01 Jul 2021 12:49
Forum: DOS Batch Forum
Topic: batch to search for duplicate letters in string
Replies: 7
Views: 6651

Re: batch to search for duplicate letters in string

I did not see %% after running the batch codes. An extra step may be needed to catch double percents. I added other special characters doubled. Quotes are not addressed; an odd number caused an error. Jerry @echo off set "str=R#**6-O0W9OXRi&FQSf1&ZcBJlwhE86D%%2CZ+-L7B+^Z2khH1<<UG>>3NbDC&&Xj@TvS!DVEA...
by Jer
29 Jan 2021 16:08
Forum: DOS Batch Forum
Topic: MODE CON:...
Replies: 2
Views: 3983

Re: MODE CON:...

This produces a similar effect, increasing the window size with each line of text, but the screen is cleared with noticeable flicker before displaying each set of lines.

Code: Select all

@echo off
@for /L %%f in (1,1,31) DO @mode CON: COLS=80 LINES=%%f&for /L %%g in (1,1,%%f) DO @echo THIS IS IT
Jer
by Jer
08 Nov 2020 15:12
Forum: DOS Batch Forum
Topic: Batchville: a new batch email discussion group
Replies: 5
Views: 7927

Re: Batchville: a new batch email discussion group

SB, I tried to join twice and get "MAILER-DAEMON@yahoo.com, Failure Notice, Sorry, we were unable to deliver your message, 510: 5.1.1 That group does not exist."
This was done after setting up an account with my yahoo email account.
Jerry
by Jer
11 Sep 2020 18:43
Forum: DOS Batch Forum
Topic: Case sensitive comparison-why doesn't this work?
Replies: 2
Views: 4179

Re: Case sensitive comparison-why doesn't this work?

String substitution is not case sensitive. Squashman, thank you for that lesson.
by Jer
10 Sep 2020 22:06
Forum: DOS Batch Forum
Topic: Case sensitive comparison-why doesn't this work?
Replies: 2
Views: 4179

Case sensitive comparison-why doesn't this work?

I can't see why the code below does not give the results I expect, give one match in a case sensitive comparison. The code represents an issue in a larger script. I'm probably confused and need expert help :roll: Yes, I read /? IF Jerry @echo Off setlocal EnableDelayedExpansion set "string=a" call :...
by Jer
01 Jul 2020 11:11
Forum: DOS Batch Forum
Topic: Best command to delete a file?
Replies: 3
Views: 4863

Re: Best command to delete a file?

Thanks for both for the explanations and examples of redirection of the error message. The shorter and safe method, del "%tempFileID%" 2> NUL is the one I'll use. Batch tools in my never-ending project write temporary files to get to the end product, and file removal is done after each temporary fil...
by Jer
29 Jun 2020 22:13
Forum: DOS Batch Forum
Topic: Best command to delete a file?
Replies: 3
Views: 4863

Best command to delete a file?

I see this in a post: del file.tmp 2>nul

I delete temporary files using this syntax: IF EXIST "%tempfileID%" DEL "%tempfileID%"
Is there a preferred way to do this?
Thanks.
Jerry