Hello,
I need bat file to detect xp or win7 (32 or 64) and then to copy
ocx and dll files to appropriate system windir and afther copy to register them.
my ocx files are in folder named OCX, and bat file is in main dir C:\SomeDir
This is my bat file for register ocx files, but I dont know how to copy them and
how to determine what OS is it, 32 or 64, System32 or SYSWOW64 ...
I need bat file to detect xp or win7 (32 or 64) and then to copy
ocx and dll files to appropriate system windir and afther copy to register them.
my ocx files are in folder named OCX, and bat file is in main dir C:\SomeDir
This is my bat file for register ocx files, but I dont know how to copy them and
how to determine what OS is it, 32 or 64, System32 or SYSWOW64 ...
Code:
@echo off
cls
Title MasteRG 2010-2012
echo.
echo.
echo Installing ocx/dll files !
echo.
echo Close all running programs
echo MasteRG (c) 2010-2012
echo.
echo Install will now start...
echo.
pause
cls
echo.
echo.
echo Instaling...
echo ----------------------------------
echo Progress: ŰŰ۲˛˛˛˛˛˛˛˛˛˛˛˛˛˛˛˛ 15%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\Button3D.ocx -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰ۲˛˛˛˛˛˛˛˛˛˛˛˛ 30%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\Button3D.ocx -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰ۲˛˛˛˛˛˛˛˛ 55%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\MSCOMCTL.OCX -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰŰŰŰ۲˛˛˛˛˛ 65%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\MSWINSCK.OCX -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰŰŰŰŰ۲˛˛˛˛ 70%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\RICHTX32.OCX -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰ۲˛˛˛ 75%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\actskin4.ocx -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰ۲˛ 90%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\COMDLG32.OCX -s
cls
echo.
echo.
echo Installing...
echo ----------------------------------
echo Progress: ŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰŰ 100%%
%systemroot%\System32\regsvr32.exe C:\Windows\System32\MSCOMM32.OCX -s
cls
echo.
echo.
echo Installation was completed!
echo.
echo Bye bye!
echo.
echo.
pause
My Computer
- OS
- windows 7 x64