Search found 215 matches

by Sponge Belly
31 Dec 2023 13:44
Forum: DOS Batch Forum
Topic: Split string to characters
Replies: 32
Views: 38199

Re: Split string to characters

Hi Again! :) I updated my split string to characters code based on Jeb’s nested for loops technique : @echo off & setLocal enableExtensions disableDelayedExpansion set "hex=0 1 2 3 4 5 6 7 8 9 A B C D E F" set str="!%%^&*~|<>?" set "chr=" & set "N=0" setLocal enableDelayedExpansion if not defined st...
by Sponge Belly
30 Dec 2023 10:34
Forum: DOS Batch Forum
Topic: infinite loop with break condition
Replies: 75
Views: 94665

Re: infinite loop with break condition

Hi Jeb! :) You wrote: The trick is to nest multiple FOR-Loops, each with a low counting number, like FOR /L %%# in (1 1 16) do ( FOR /L %%# in (1 1 16) do ( FOR /L %%# in (1 1 16) do ( FOR /L %%# in (1 1 16) do ( ... the loop code is here REM Stop the code by goto :break ) ) ) ) :break Obviously thi...
by Sponge Belly
27 Apr 2023 05:18
Forum: DOS Batch Forum
Topic: Need Help w Batch Rename
Replies: 1
Views: 1227

Re: Need Help w Batch Rename

Hi Mike! :)

Please read the following posts:
Both written by the legendary Dave Benham.

HTH! 8)

- SB
by Sponge Belly
25 Feb 2023 08:47
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 3565

Re: Check File Size Properties

Hi Xiro! :)

Please read this Microsoft Community thread.

HTH!

- SB
by Sponge Belly
19 Feb 2023 17:20
Forum: DOS Batch Forum
Topic: creating a batch file to pause for user input to open a specific folder in windows...
Replies: 2
Views: 1612

Re: creating a batch file to pause for user input to open a specific folder in windows...

Hi Gizibo! :)

Please read this post (#32) by Aacini.

Once you have the folder chosen by the user stored in a variable (eg, %folderName%), you can open a File Explorer window at that location by doing the following:

Code: Select all

start "" "%folderName%"
HTH! 8)

- SB
by Sponge Belly
30 Oct 2022 06:31
Forum: DOS Batch Forum
Topic: reverse string without goto
Replies: 10
Views: 13662

Re: reverse string without goto

Hi Again! :) Belated thanks to Aacini and T3RRY for their excellent contributions. Below is my final word on the topic—a Batch/JScript hybrid: @if (@X==@Y) @then :: Batch @echo off & setLocal enableExtensions disableDelayedExpansion set ^"strFwd=short ^" ^< %% ^| ^^ ! string^" set "strRev=" & for /f...
by Sponge Belly
13 Oct 2022 15:43
Forum: DOS Batch Forum
Topic: OT: WhatsApp Woes
Replies: 0
Views: 23267

OT: WhatsApp Woes

Hello All! :) Forgive me for going off topic, but I’m in a bind. I accidentally deleted 3 weeks worth of WhatsApp messages and media, and I want them restored. No WhatsApp or iCloud backup, nada. :oops: I tried something called Phone Rescue. It could show me the deleted messages. So they are still o...
by Sponge Belly
07 Aug 2022 05:43
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - problems with german umlauts
Replies: 16
Views: 7043

Re: JSORT.BAT v4.2 - problems with german umlauts

Excellent work, Steffen! 8)

Just one question… what do you mean by ACP 1252 and OEMCP 850?

How can I have 2 different code pages active at once? If I chcp 1252, how can the code page be 850 at the same time?

Thanks!

- SB
by Sponge Belly
06 Aug 2022 05:59
Forum: DOS Batch Forum
Topic: JSORT.BAT v4.2 - problems with german umlauts
Replies: 16
Views: 7043

Re: JSORT.BAT v4.2 - problems with german umlauts

aGerman wrote:
Replace all occurrences of WScript.Echo with WScript.StdOut.WriteLine
Thanks for the tip, Steffen! :)

But can you explain why replacing WScript.Echo with WScript.StdOut.WriteLine solves the umlaut problem?

- SB
by Sponge Belly
19 Feb 2022 17:08
Forum: DOS Batch Forum
Topic: reverse string without goto
Replies: 10
Views: 13662

Re: reverse string without goto

Hello All! :) Thanks again to @penpen for his informative reply. And belated thanks to @npocmaka_, @pieh-ejdsch, and @aschipfl for their awesome versions of how to reverse a string. I must confess I can’t completely follow their approaches. Something about repeatedly halving the string and substitut...
by Sponge Belly
18 Dec 2021 19:44
Forum: DOS Batch Forum
Topic: toggle case
Replies: 2
Views: 2731

toggle case

Hello All! :) Sorry I haven't posted in a while. To borrow Harold Macmillan’s immortal line : Events, my dear boy, events. Anyways, here’s a little something I’ve been working on: @echo off & setLocal enableExtensions disableDelayedExpansion (call;) %= sets errorlevel to 0 =% set ^"toggled=AaAaBbBbC...
by Sponge Belly
03 Nov 2021 14:57
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 42
Views: 153397

Re: Foxidrive has left us

Five years? :shock:

RIP, Foxi. :(
by Sponge Belly
15 Nov 2020 13:14
Forum: DOS Batch Forum
Topic: Batchville: a new batch email discussion group
Replies: 5
Views: 5842

Re: Batchville: a new batch email discussion group

Hi Compo, You can subscribe to the group via the website. Go to the Batchville Home Page , and click on the Join This Group button. Enter your email address in the form, and click on the Confirm Email Address button. You will receive an email from Groups.io with a link in it. Click on the link so th...
by Sponge Belly
08 Nov 2020 16:17
Forum: DOS Batch Forum
Topic: Batchville: a new batch email discussion group
Replies: 5
Views: 5842

Re: Batchville: a new batch email discussion group

Hi Jerry,

The new group is hosted on Groups.io, not Yahoo! To subscribe, send an email with a blank subject line to:

batchville+subscribe@groups.io

See you there! :)

- SB