Search found 161 matches

by IcarusLives
23 Sep 2021 15:50
Forum: DOS Batch Forum
Topic: split string into substrings based on delimiter
Replies: 44
Views: 86074

Re: Efficient Array Management Operations in Batch files

This magic line

Code: Select all

set "i=1" & set "s!i!=%str:.=" & set /A i+=1 & set "s!i!=%"
I did not expect this resulted behavior. Quiet astounding! I imagine this method is much faster compared to intuitive loops. :?:

I'm always so overwhelmed with excitement with releases like this.

As always, GREAT WORK!
by IcarusLives
17 Sep 2021 13:15
Forum: DOS Batch Forum
Topic: [How-To] Get or set the console font size and font name (PowerShell hybrid)
Replies: 3
Views: 5326

Re: [How-To] Get or set the console font size and font name (PowerShell hybrid)

Hi! I love this, and I'd love to use it. Trying to tinker with it, but I don't know Powershell! Can you help me? Typically I run my scripts in raster fonts 8x8. It's nice to have a nice square character to draw shapes and run animation. Using %setfont%, I haven't been able to achieve it. I can get 4...
by IcarusLives
29 Aug 2021 08:40
Forum: DOS Batch Forum
Topic: Paint & Animation Studio
Replies: 11
Views: 9842

Re: Paint & Animation Studio

Is %getString% never defined? Cannot seem to locate it. Just trying to read through the code to see why it's not functioning for me.
by IcarusLives
06 Aug 2021 12:54
Forum: DOS Batch Forum
Topic: Set Global and "local" Counter [SOLVED]
Replies: 5
Views: 3449

Re: Set Global and "local" Counter

You're missing the entire fundamental of set /a.

Code: Select all

set /a "var=1"

set /a "var[1]=var + 1"
set /a "var[2]=var[1] + 2"

set /a "var+=1"
You don't change the command. You create an array and add to each variable accordingly.
by IcarusLives
14 Jul 2021 19:51
Forum: DOS Batch Forum
Topic: [How-To] Screenshot of Batch window (PowerShell hybrid)
Replies: 4
Views: 4187

Re: [How-To] Screenshot of Batch window (PowerShell hybrid)

I love it! Works great on my end. Can be used for so many interesting things such as monitoring software. Well done, thanks for the release.
by IcarusLives
03 Jul 2021 08:34
Forum: DOS Batch Forum
Topic: Create a Image from a batch file.
Replies: 6
Views: 4721

Re: Create a Image from a batch file.

You can also check my version of displaying .ppm files

viewtopic.php?f=3&t=8087&p=53745#p53745
by IcarusLives
18 May 2021 17:06
Forum: DOS Batch Forum
Topic: Batch coloring not working after git output
Replies: 2
Views: 2970

Re: Batch coloring not working after git output

You're going to need the ESC character instead of whatever this is <ESC>

Code: Select all

( for /f %%a in ('echo prompt $E^| cmd') do set "esc=%%a" ) & <nul set /p "=!esc![?25l"
This is the line of code I use to capture it.

You can access it simply by using %esc% instead of <ESC>
by IcarusLives
14 Apr 2021 11:41
Forum: DOS Batch Forum
Topic: Clobbered cmd.exe!
Replies: 7
Views: 10016

Re: Clobbered cmd.exe!

Compo wrote:
12 Apr 2021 19:05
Have you tries the basics, as administrator, before resorting to a System Restore?

Code: Select all

sfc.exe /ScanNow

Code: Select all

Dism.exe /Online /Cleanup-Image /CheckHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /ScanHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /RestoreHealth
He's unable to access cmd.exe
by IcarusLives
11 Dec 2020 20:58
Forum: DOS Batch Forum
Topic: Display .BMP files in RGB colors - WIN 10 ONLY
Replies: 5
Views: 6784

Re: Display .BMP files in RGB colors - WIN 10 ONLY

Stunning work! This is beautiful. Thank you for mentioning my thread as well! I will be inspecting your code shortly.
by IcarusLives
03 Nov 2020 22:33
Forum: DOS Batch Forum
Topic: Some holiday animations (from Vt100.net)
Replies: 6
Views: 5642

Re: Some holiday animations (from Vt100.net)

I have a question for @penpen!

Why add 0 to this? :)

Code: Select all

set /a "delay=1000-%~2+0"
I was inspecting your code, but I am curious if I am missing something here?
by IcarusLives
07 Aug 2020 12:14
Forum: DOS Batch Forum
Topic: Bézier curve animation symmetric fantasy art
Replies: 18
Views: 29869

Re: Bézier curve animation symmetric fantasy art

Edited: Fixed to be true to OP I created a windows 10 VT100 version of the non-symmetrical version Sorry for digging this up, but I hope you enjoy! https://gyazo.com/fd5d6d4590c2cc2306b27df4299e8569.gif @echo off & setlocal enabledelayedexpansion mode 100,100 ( for /f %%a in ('echo prompt $E^| cmd')...
by IcarusLives
23 Jul 2020 13:36
Forum: DOS Batch Forum
Topic: Problem with ELSE.
Replies: 2
Views: 3265

Re: Problem with ELSE.

Perhaps your problem is this line?

Code: Select all

chkdsk %Drive%: /F
It should be

Code: Select all

chkdsk %Drive%:\ /F
by IcarusLives
05 Jun 2020 12:12
Forum: DOS Batch Forum
Topic: Batch wont display anything on my new PC???
Replies: 5
Views: 6130

Re: Batch wont display anything on my new PC???

ShadowThief wrote:
05 Jun 2020 10:43
If it's just a black screen, blindly type color 07 and see if that fixes things
LOL Wow thank you so much. I feel like such an idiot. Yes this worked. Thank you so much!
by IcarusLives
05 Jun 2020 08:25
Forum: DOS Batch Forum
Topic: Batch wont display anything on my new PC???
Replies: 5
Views: 6130

Batch wont display anything on my new PC???

I have no idea why, but after I got my new PC, batch wont display anything for me? I've tried everything from messing with the fonts, and properties. The only thing i can thing is possibly my "nonactivated" version of win 10. Any ideas? INFO.BAT version 1.5 ------------------------------------------...
by IcarusLives
16 Aug 2019 12:51
Forum: DOS Batch Forum
Topic: Call bug using silent operator @
Replies: 2
Views: 6147

Re: Call bug using silent operator @

While this is a very interesting find, it is SUBSTANTIALLY slower than using REM @echo off echo %time% for /l %%a in (1,1,1000000) do rem echo %time% echo. echo %time% for /l %%a in (1,1,1000000) do call @ this is a comment echo %time% pause 14:49:04.92 14:49:06.18 14:49:06.18 14:50:37.22 Press any ...