49 lines
1.9 KiB
Batchfile
49 lines
1.9 KiB
Batchfile
:: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
::
|
|
:: software : ImpraStorage <http://kirmah.sourceforge.net/>
|
|
:: version : 1.01
|
|
:: date : 2014
|
|
:: licence : GPLv3.0 <http://www.gnu.org/licenses/>
|
|
:: author : a-Sansara <[a-sansara]at[clochardprod]dot[net]>
|
|
:: copyright : pluie.org <http://www.pluie.org/>
|
|
::
|
|
:: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
::
|
|
:: This file is part of ImpraStorage.
|
|
::
|
|
:: ImpraStorage is free software (free as in speech) : you can redistribute it
|
|
:: and/or modify it under the terms of the GNU General Public License as
|
|
:: published by the Free Software Foundation, either version 3 of the License,
|
|
:: or (at your option) any later version.
|
|
::
|
|
:: ImpraStorage is distributed in the hope that it will be useful, but WITHOUT
|
|
:: ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
:: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
:: more details.
|
|
::
|
|
:: You should have received a copy of the GNU General Public License
|
|
:: along with ImpraStorage. If not, see <http://www.gnu.org/licenses/>.
|
|
::
|
|
@Echo Off
|
|
Set _Title=ImpraStorage
|
|
Set _Height=60
|
|
Set _Width=122
|
|
Set _BHeight=5000
|
|
Set _BWidth=%_Width%
|
|
Set _xPos=0
|
|
Set _yPos=0
|
|
Set _Color=1E
|
|
Set /A _BufferSize=_BHeight*0x10000+_BWidth
|
|
Set /A _WindowPos=_yPos*0x10000+_xPos
|
|
Set /A _WindowSize=_Height*0x10000+_Width
|
|
Set _Cmd=Title ^&Prompt ^&Color 0F^&ImpraStorage.exe --run
|
|
Call :_OpenCP %_BufferSize% %_Color% %_WindowPos% %_WindowSize% "%_Title%" "%_CMD%"
|
|
Goto :EOF
|
|
:_OpenCP
|
|
Reg Add "HKCU\Console\%~5" /V ScreenBufferSize /T REG_DWORD /D %1 /F
|
|
Reg Add "HKCU\Console\%~5" /V ScreenColors /T REG_DWORD /D 0x%2 /F
|
|
Reg Add "HKCU\Console\%~5" /V WindowPosition /T REG_DWORD /D %3 /F
|
|
Reg Add "HKCU\Console\%~5" /V WindowSize /T REG_DWORD /D %4 /F
|
|
Start "%~5" %COMSPEC% /K %6
|
|
exit
|