Convert Script Bat to c#

  • Thread starter Thread starter Anis07
  • Start date Start date
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

:DELREG
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

:DELREG2
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...
 
Back
Top