2014-07-17 23:48:07 +00:00
|
|
|
:: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
2012-10-01 20:20:56 +00:00
|
|
|
::
|
2014-07-17 23:48:07 +00:00
|
|
|
:: 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/>
|
2012-10-01 20:20:56 +00:00
|
|
|
::
|
2014-07-17 23:48:07 +00:00
|
|
|
:: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
2012-10-01 20:20:56 +00:00
|
|
|
::
|
2014-07-17 23:48:07 +00:00
|
|
|
:: 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/>.
|
2012-10-01 20:20:56 +00:00
|
|
|
::
|
2012-09-20 21:55:37 +00:00
|
|
|
@Echo Off
|
2012-09-29 18:42:55 +00:00
|
|
|
Set _Title=ImpraStorage
|
2012-09-20 21:55:37 +00:00
|
|
|
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
|
2012-09-29 18:42:55 +00:00
|
|
|
Set _Cmd=Title ^&Prompt ^&Color 0F^&ImpraStorage.exe --run
|
2012-09-20 21:55:37 +00:00
|
|
|
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
|
2012-10-01 20:20:56 +00:00
|
|
|
exit
|