A
Anis07
Guest
hi
i need help how to converting script bat to c#
@shift /0
@echo off
reg query HKEY_LOCAL_MACHINE\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG
reg query HKEY_CURRENT_USER\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG2
goto BIT
ELREG
reg DELETE HKEY_LOCAL_MACHINE\Software\imotech /f
rem Wait 20
reg query HKEY_CURRENT_USER\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG2
goto BIT
ELREG2
reg DELETE HKEY_CURRENT_USER\Software\imotech /f
rem Wait 20
goto BIT
:BIT
if exist "%PROGRAMFILES(X86)%" goto RUN64
goto RUN32
:RUN32
"%CD%\x86.exe" 24\10\2500 "%CD%\XXX.exe"
goto ABOUT
:RUN64
"%CD%\x64.exe" 24\10\2500 "%CD%\XXX.exe"
goto ABOUT
:ABOUT
cls
echo -------------------------------------
echo - Software Name : XXX 1.5.x -
echo - Version : v1.2 -
echo -------------------------------------
timeout 3
Continue reading...
i need help how to converting script bat to c#
@shift /0
@echo off
reg query HKEY_LOCAL_MACHINE\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG
reg query HKEY_CURRENT_USER\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG2
goto BIT
ELREG
reg DELETE HKEY_LOCAL_MACHINE\Software\imotech /f
rem Wait 20
reg query HKEY_CURRENT_USER\Software\imotech
if %ERRORLEVEL% EQU 0 goto DELREG2
goto BIT
ELREG2
reg DELETE HKEY_CURRENT_USER\Software\imotech /f
rem Wait 20
goto BIT
:BIT
if exist "%PROGRAMFILES(X86)%" goto RUN64
goto RUN32
:RUN32
"%CD%\x86.exe" 24\10\2500 "%CD%\XXX.exe"
goto ABOUT
:RUN64
"%CD%\x64.exe" 24\10\2500 "%CD%\XXX.exe"
goto ABOUT
:ABOUT
cls
echo -------------------------------------
echo - Software Name : XXX 1.5.x -
echo - Version : v1.2 -
echo -------------------------------------
timeout 3
Continue reading...