Hi everyone,
I'm using "UltraEdit Text/Hex Editor (x64) Version 24.20.0.40".
Problem I'm having is with batch scripts not executing correctly. This happens when I copy/paste and save batch script code.
I have included few screenshots and one of the batch script code that I have a problem with.
Above batch script code when saved using Notepad execute correctly as you can see it from below link.
https://gyazo.com/0b9e699c26b7088c983879d8d897238e
Above batch script code when saved using UltraEdit execute as shown below screenshot.
Can I please get a advice for resolving this problem. Thank you!
I'm using "UltraEdit Text/Hex Editor (x64) Version 24.20.0.40".
Problem I'm having is with batch scripts not executing correctly. This happens when I copy/paste and save batch script code.
I have included few screenshots and one of the batch script code that I have a problem with.
Code: Select all
@echo off & setlocal enableDelayedExpansion
mode 50,50
set ^"LF=^
^" Above empty line is required - do not remove
set ^"\n=^^^%LF%%LF%^%LF%%LF%^^"
for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a"
set plot=for %%# in (1 2) do if %%#==2 ( for /f "tokens=1-3 delims=:" %%1 in ("^!args^!:^!ESC^!") do (%\n%
for /f "tokens=1-4" %%a in ("%%~1") do ^<nul set /p "=%%3[%%b;%%aH%%3[38;5;%%cm%%3[48;5;%%dm%%~2%%3[0m"%\n%
)) else set args=
set circle=for %%# in (1 2) do if %%#==2 ( for /f "tokens=1-6" %%1 in ("^!args^!") do (%\n%
if "%%~5" equ "" ( set "hue=30" ) else ( set "hue=%%~5")%\n%
for /l %%y in (-%%3,1,%%3) do for /l %%x in (-%%3,1,%%3) do (%\n%
set /a "S=(%%x * %%x) + (%%y * %%y) - (%%3 * %%3)", "_3div2=%%3 / 2", "tx=%%x+%%1", "ty=%%y+%%2"%\n%
for /f "tokens=1-5" %%a in ("^!S^! ^!_3div2^! ^!tx^! ^!ty^! ^!hue^!") do (%\n%
if "%%6" equ "/f" ( if %%a leq 1 ( ^!plot^! %%c %%d %%e 0 :%%~4)%\n%
) else if "%%6" equ "/n" ( if %%a geq -%%3 ( ^!plot^! %%c %%d %%e 0 :%%~4)%\n%
) else if %%a geq -%%3 if %%a leq %%b ( ^!plot^! %%c %%d %%e 0 :%%~4)%\n%
))%\n%
set "s="%\n%
)) else set args=
for /l %%b in (0,1,4) do (
set /a "x%%b=!random! %% 40 + 10"
set /a "y%%b=!random! %% 40 + 10"
set /a "i%%b=!random! %% 3 + 1"
set /a "j%%b=!random! %% 2 + 1"
set /a "s%%b=!random! %% 3 + 2"
set /a "b%%b=50 - s%%b"
set /a "c%%b=!random! %% 255"
)
for /l %%# in () do ( for /l %%b in (0,1,4) do (
set /a "x%%b+=i%%b", "y%%b+=j%%b"
if !x%%b! geq !b%%b! set /a "x%%b=b%%b", "i%%b*=-1"
if !y%%b! geq !b%%b! set /a "y%%b=b%%b", "j%%b*=-1"
if !x%%b! leq !s%%b! set /a "x%%b=s%%b", "i%%b*=-1"
if !y%%b! leq !s%%b! set /a "y%%b=s%%b", "j%%b*=-1"
%circle% !x%%b! !y%%b! !s%%b! . !c%%b!
)
cls
)
https://gyazo.com/0b9e699c26b7088c983879d8d897238e
Above batch script code when saved using UltraEdit execute as shown below screenshot.
Can I please get a advice for resolving this problem. Thank you!