We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5887b35 commit 07c51d1Copy full SHA for 07c51d1
stringutils/stringToHex.bat
@@ -2,7 +2,7 @@
2
:stringToHex
3
del tmp.hex >nul 2>nul
4
del tmp.str >nul 2>nul
5
-echo|(set /p=%~1)>tmp.str
+(echo|set /p=%~1)>tmp.str
6
7
certutil -encodehex tmp.str tmp.hex >nul
8
setlocal enableDelayedExpansion
@@ -13,6 +13,5 @@ for /f "usebackq tokens=2 delims= " %%A in ("tmp.hex") do (
13
set hex_str=!hex_str: =!
14
15
)
16
-::clears EOF character
17
-set "hex_str=%hex_str:~0,-2%"
18
-(echo(!hex_str!)
+echo !hex_str!
+exit /b %errorlevel%
0 commit comments