Search found 215 matches
- 31 Dec 2023 13:44
- Forum: DOS Batch Forum
- Topic: Split string to characters
- Replies: 32
- Views: 38624
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...
- 30 Dec 2023 10:34
- Forum: DOS Batch Forum
- Topic: infinite loop with break condition
- Replies: 75
- Views: 97288
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...
- 27 Apr 2023 05:18
- Forum: DOS Batch Forum
- Topic: Need Help w Batch Rename
- Replies: 1
- Views: 1394
Re: Need Help w Batch Rename
Hi Mike!
Please read the following posts:
HTH!
- SB
Please read the following posts:
- How does the Windows rename command interpret wildcards? (Super User)
- JREN.BAT v2.8 - Rename files/folders using regular expressions (DosTips)
HTH!
- SB
- 25 Feb 2023 08:47
- Forum: DOS Batch Forum
- Topic: Check File Size Properties
- Replies: 12
- Views: 3969
- 20 Feb 2023 11:51
- Forum: DOS Batch Forum
- Topic: Is there a way to pass multiple param value pairs to a batch file
- Replies: 3
- Views: 7117
- 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: 1765
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:
HTH!
- SB
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%"
- SB
- 30 Oct 2022 06:31
- Forum: DOS Batch Forum
- Topic: reverse string without goto
- Replies: 10
- Views: 13945
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...
- 13 Oct 2022 15:43
- Forum: DOS Batch Forum
- Topic: OT: WhatsApp Woes
- Replies: 0
- Views: 26998
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...
- 07 Aug 2022 05:43
- Forum: DOS Batch Forum
- Topic: JSORT.BAT v4.2 - problems with german umlauts
- Replies: 16
- Views: 7403
Re: JSORT.BAT v4.2 - problems with german umlauts
Excellent work, Steffen!
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
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
- 06 Aug 2022 05:59
- Forum: DOS Batch Forum
- Topic: JSORT.BAT v4.2 - problems with german umlauts
- Replies: 16
- Views: 7403
Re: JSORT.BAT v4.2 - problems with german umlauts
aGerman wrote:
But can you explain why replacing WScript.Echo with WScript.StdOut.WriteLine solves the umlaut problem?
- SB
Thanks for the tip, Steffen!Replace all occurrences of WScript.Echo with WScript.StdOut.WriteLine
But can you explain why replacing WScript.Echo with WScript.StdOut.WriteLine solves the umlaut problem?
- SB
- 19 Feb 2022 17:08
- Forum: DOS Batch Forum
- Topic: reverse string without goto
- Replies: 10
- Views: 13945
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...
- 18 Dec 2021 19:44
- Forum: DOS Batch Forum
- Topic: toggle case
- Replies: 2
- Views: 2805
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...
- 03 Nov 2021 14:57
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 42
- Views: 167460
Re: Foxidrive has left us
Five years?
RIP, Foxi.
RIP, Foxi.
- 15 Nov 2020 13:14
- Forum: DOS Batch Forum
- Topic: Batchville: a new batch email discussion group
- Replies: 5
- Views: 5957
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...
- 08 Nov 2020 16:17
- Forum: DOS Batch Forum
- Topic: Batchville: a new batch email discussion group
- Replies: 5
- Views: 5957
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
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