::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
::
::  This file will copy the Access Support and Egath files to the Downloaded Program Files folder.
::
::  It will also register the necessary dlls after the copy process is complete.
;;
;;
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
::Set variable
set copyDPF="%windir%\Downloaded Program Files"


::Change to temp dir
cd %temp%

::Copy files from temp to Downloaded Program Files
copy acpController.dll %copyDPF%
copy acpPollingEngine.dll %copyDPF%
copy IbmEgath.dll %copyDPF%
copy IbmEgath.inf %copyDPF%
copy egathdrv.sys %copyDPF%
copy egathvxd.vxd %copyDPF%

::Change to Downloaded Program Files dir
cd\
cd "%windir%\Downloaded Program Files"

::Register dlls
regsvr32/s acpController.dll
regsvr32/s IbmEgath.dll

::Clean variable
set copyDPF=""