Scripts (.bat)
Published: 2022-02-17 19:56:31





**Configuração Arquivo Imagem Scanner**

O programa que realiza o escaneamento das impressoras Brother define por padrão o formato .bmp que com as resoluções necessárias cada arquivo ocupava em média 24 MB de espaço em disco.

Sempre tínhamos problemas de armazenamento nos computadores(120 onde eu atuava) devido a essa configuração.

Foi encontrado as chaves de registros do windows onde eram armazenadas estas configurações.

Realizamos uma configuração padrão exportamos e desenvolvemos o script abaixo que adicionamos idle-time para que funcionasse corretamente

> @ping 127.0.0.1 -n 10 -w 1000 > nul
> taskkill /F /IM BrccMCtl.exe
> taskkill /F /IM brctrcen.exe 
> @ping 127.0.0.1 -n 2 -w 1000 > nul
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\HardBtn\BtnAction" /v "FileComp" /t REG_DWORD /d "0x00000003" /f 
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\SoftBtn\BtnAction" /v "FileComp" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button0\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\HardBtn\BtnAction" /v "FileComp" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\SoftBtn\BtnAction" /v "FileComp" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8890DW LAN\Tabs\0000\Button3\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8860DN LAN\Tabs\0000\Button0\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
> REG ADD "HKCU\Software\Brother\ControlCenter\3.0\MFC-8860DN LAN\Tabs\0000\Button0\HardBtn\BtnAction" /v "FileComp" /t REG_DWORD /d "0x00000003" /f
0000\Button0\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button0\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button0\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button3\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button3\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button3\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8890DW LAN\Tabs\0000\Button3\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button0\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button0\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button0\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x00000003" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button0\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button3\HardBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button3\HardBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button3\SoftBtn\BtnAction" /v "FileType" /t REG_DWORD /d "0x0000000e" /f
REG ADD "HKCU\Software\Brother\ControlCenter\2.0\MFC-8480DN LAN\Tabs\0000\Button3\SoftBtn\ScanSetting" /v "Resolution" /t REG_DWORD /d "0x00000064" /f

> @ping 127.0.0.1 -n 2 -w 1000 > nul
> "C:\Program Files (x86)\Brother\ControlCenter3\BrccMCtl.exe"
> "c:\Program Files (x86)\Brother\ControlCenter2\brctrcen.exe"
> "C:\Program Files\Brother\ControlCenter3\BrccMCtl.exe"
> "c:\Program Files\Brother\ControlCenter2\brctrcen.exe"