どこででもいいので、とりあえずこのバッチを起動すれば
・環境を構築して
・初期設定とかして
・いろいろサポートしてくれる
害はないのでとりあえずやってみてください!
使い方も画面にでてきます
Support.bat
@echo off
call:環境設定
call:バッチ設定
call:open
call:calling
rem ==============================================================================================================================================================================
rem 設定
rem ==============================================================================================================================================================================
:環境設定
rem *********************
set THE_ROOT=C:\Users\%USERNAME%\
set THE_SUB=W:\
rem *********************
set THE_ROOT_DOCUMENT=%THE_ROOT%Documents\
set THE_ROOT_DESKTOP=%THE_ROOT%Desktop\
set WORLD=%THE_ROOT_DOCUMENT%World\
set GIFT=%THE_ROOT_DOCUMENT%Gift\
set TOOLBOX=%THE_ROOT_DOCUMENT%Tool\
set ARTIFACT=%WORLD%artifact\
set LINK=%WORLD%link\
set GIFT_TO=%Gift%Gift
set GIFT_TO_OTHER=%THE_SUB%Gift\
if not exist %ARTIFACT% mkdir %ARTIFACT% && echo "初期設定:%ARTIFACT% を作成しました。" && powershell sleep -m 100
if not exist %LINK% mkdir %LINK% && echo "初期設定:%LINK% を作成しました。" && powershell sleep -m 100
if not exist %WORLD%stock\ mkdir %WORLD%stock\ && echo "初期設定:%WORLD%stock\ を作成しました。" && powershell sleep -m 100
if not exist %WORLD%wip\ mkdir %WORLD%wip\ && echo "初期設定:%WORLD%wip\ を作成しました。" && powershell sleep -m 100
if not exist %GIFT% mkdir %GIFT% && echo "初期設定:%GIFT% を作成しました。" && powershell sleep -m 100
if not exist %TOOLBOX% mkdir %TOOLBOX% && echo "初期設定:%TOOLBOX% を作成しました。" && powershell sleep -m 100
if not exist %GIFT_TO_OTHER% mkdir %GIFT_TO_OTHER% && echo "初期設定:%GIFT_TO_OTHER% を作成しました。" && powershell sleep -m 100
exit /b
:バッチ設定
set GRIMOIRE_PATH=%ARTIFACT%Support.bat
set SC_PATH=%THE_ROOT_DESKTOP%Support.lnk
if not exist %GRIMOIRE_PATH% (
copy /y "%~dp0%~nx0" "%GRIMOIRE_PATH%"
echo "%GRIMOIRE_PATH% を作成しました。本バッチをコピーして作成しました。" && powershell sleep -s 1
)
if not exist %SC_PATH% (
powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SC_PATH%');$s.TargetPath='%GRIMOIRE_PATH%';$s.Save()"
echo "%SC_PATH% を作成しました。「プロパティ」からショートカットキーを設定することを推奨します。" && powershell sleep -s 1
echo 初回起動が終了しました。本バッチファイルを削除し、作成したバッチのショートカットを起動します。
pause
start %SC_PATH%
del /f "%~dp0%~nx0"
exit
)
set SPL===========================================================
set trimDate=%DATE: =0%
set timestamp=_%trimDate:~0,4%_%trimDate:~5,2%_%trimDate:~8,2%
set GOD_NAME_0=0_タスクキル
set GOD_NAME_1=1_ファイル実行
set GOD_NAME_2=2_BK取得
set GOD_NAME_3=3_アプリ起動
exit /b
rem ==============================================================================================================================================================================
rem 内部処理用関数
rem ==============================================================================================================================================================================
rem バッチ起動
:open
call:book_1
call:book_2
call:book_3
call:book_4
call:title
exit /b
rem バッチ終了
:close
echo. && echo Close %~n0 && powershell sleep -m 100
call:deltab
call:book_4
call:book_3
call:book_2
call:book_1
exit
rem ウィンドウをアクティブに
:win_activate
powershell -command "(new-object -com 'WScript.Shell').AppActivate('%~n0')" > nul
exit /b
rem 機能名の隠しファイルを作成しTab補完可能に、機能名一覧を表示
:mktab
echo. && echo "以下の機能を実行できます。Tab補完で選択可能。" && echo %SPL%%SPL%
for /f "usebackq delims== tokens=2" %%a in (`set GOD_NAME`) do (echo %%a && if not exist %%a type nul > %%a && attrib +h %%a)
echo %SPL%%SPL% && echo. && echo CALL...
exit /b
rem 隠しファイル削除
:deltab
for /f "usebackq delims== tokens=2" %%a in (`set GOD_NAME`) do (if exist %%a attrib -h %%a && del /q %%a)
exit /b
rem ==============================================================================================================================================================================
rem 呼び出し再帰処理
rem ==============================================================================================================================================================================
:calling
cd /d %ARTIFACT%
call:win_activate
call:mktab
echo "入力なしEnterで終了します"
set CCC= && set/p CCC=
if errorlevel 1 (call:close)
call:deltab
for /f "usebackq delims== tokens=2" %%a in (`set GOD_NAME`) do (if %%a == %CCC% echo. && call:%CCC%)
call:calling
rem ==============================================================================================================================================================================
rem 実装情報
rem ==============================================================================================================================================================================
:0_タスクキル
choice /m "全てのタスクを終了します。よろしいですか?"
if errorlevel 2 (exit /b) else (taskkill /f /fi "imagename ne cmd.exe" /fi "imagename ne conhost.exe")
choice /t 1 /d n /m "再起動しますか ?(1秒以内に回答)"
if errorlevel 2 (exit /b) else (echo "10秒後に再起動します。" && shutdown /r /t 10)
choice /t 5 /d y /m "キャンセルしますか ?(5秒以内に回答)"
if errorlevel 2 (echo "再起動を継続実行中" && powershell sleep -s 10) else (shutdown /a && echo "再起動を中止しました" && exit /b)
:1_ファイル実行
echo "以下のファイルを実行できます。Tab補完で選択可能。"
echo "入力なしEnterで戻ります"
echo %SPL% && dir /a-d /b && echo %SPL% && echo. && set NN= && set /p NN=
if errorlevel 1 (exit /b)
dir /a-d /b /s | findstr "%NN%[^\\]*$" > %ARTIFACT%phantom.txt
set /p XX= < %ARTIFACT%phantom.txt
del /q %ARTIFACT%phantom.txt && echo START:%XX% && call %XX% && exit /b
:2_BK取得
echo "%WORLD% 配下を %GIFT_TO%%timestamp%.zipとして保存します。"
echo "また、%GIFT_TO%%timestamp%.zip を %GIFT_TO_OTHER% に転送します。"
powershell sleep -m 300
mkdir %GIFT_TO%%timestamp%
robocopy /s /e %WORLD% %GIFT_TO%%timestamp%
powershell Compress-Archive -Path %GIFT_TO%%timestamp% -DestinationPath %GIFT_TO%%timestamp%.zip -Force
rmdir /s /q %GIFT_TO%%timestamp%
copy /y %GIFT_TO%%timestamp%.zip %GIFT_TO_OTHER%
if errorlevel 1 echo %GIFT_TO_OTHER% is not exist.
exit /b
:3_アプリ起動
echo "%LINK% 配下(深さ1)を全て起動します。"
cd /d %LINK%
for %%a in (*.*) do (echo START:%%a && start /max "" "%%a" && call:win_activate)
exit /b
rem ==============================================================================================================================================================================
rem アスキーアート
rem ==============================================================================================================================================================================
:title
mode 200,63
echo %SPL%%SPL%
echo " ##### ## ";
echo " ## ## ## ";
echo " # ## ## ###### ###### #### ###### ##### ";
echo " ##### ## ## ## ## ## ## ## ## ## ## ## ";
echo " ## ## ## ## ## ## ## ## ## ## ## ";
echo " ## ## ## ## ##### ##### ## ## ## ## ## ";
echo " ##### ###### ## ## #### #### ### ";
echo " #### #### ";
echo %SPL%%SPL%
exit /b
:book_1
mode 135,35
echo " ` ` ` ``` ` ` ` ` ` ````````` ``` ....."
echo " ..+MMY'!?TNJ. `"
echo " ..-gMM#'^ ?MN,"
echo " ` ` ` ..+MMMB'^ .TMN,"
echo " ` ...JNMMH97` (TMa,"
echo " ` ...+NMMMM""! (TMm, `"
echo " ` ` ...gMMMMB""` ?TMN,."
echo " ` ` ` ..-gMMMY""! ?WMN,.`"
echo " ` ...gMMMB'^ ?WMNJ.`"
echo " ` ..+NMMM9'! ?WMNa,"
echo " ` ..JNMM#""` .MMMMm,"
echo " ..&MM#""` ...gMMMMY""TMx"
echo " ..gMM""! `...gMMMH9'` (M|"
echo " .WMN, ` ..+MMMMB'! M#"
echo " (MMNJ, ` ` ..(gMMMB'! .M#"
echo " .MbkWNa, ` ` ` ` ..JXMMB'! (M%"
echo " ` dMMmgMNWh..``` `` ` ` ` ...dM#Y9'` ` ` ` ` ` ` .(M$"
echo " ` .MNNWMMNWMMHQa, ` ..JNMMY`! ` ` ` ` ..(NMY``"
echo " (gNMNWMHMMNWf7TMMNWMMNQ,. ` ` ` ` ..(gMMY`^ ` ` ` ` ..JdH9``"
echo " ,WMMHMMMNNMMMMNJ,.`9MMMMMN&, ` ` ...gMMM9`` ` ` ..&M#`^"
echo " 78MNJJ`TMMMMMMMNa,.7WMMMMNa, ` ..&MMMB`^ ```` ```` `` ..Jk#9`!"
echo " (`MMN,.?TMNMMMNNa, _TMMNNNm, `..-gMMMB`! ` ..+MB`^"
echo " ?WMNa, 7WMMMMMMm, (TMMMMNa..gMMM9=` ..+MM9``"
echo " -TMMN,.?TMMMMMMa, (TMMMMM@' ..+MM#`!"
echo " ?WMNa,_TMMMMMN, .7YMN, ..+MMB=`"
echo " _TMMN,,TMMMb ?Me ..JMMM#``"
echo " TMMN,,TMN, dM, ..JMMMM9="
echo " TMMm,7MN, dM\ ..(MMM#`="
echo " ` .TMN,(`!.dM# ..gMMH`^"
echo " TMNagMMMl..gMMMB``"
echo " ?MMMMMMMB`!"
echo " _7!"
powershell sleep -m 100 && cls && exit /b
:book_2
mode 140,40
echo " ..(HMM"
echo " .J5jMHHW@"
echo " ..M+J5(MHMfWM!"
echo " .JY(M3JMHMVVVM\ "
echo " .J`.V6JMHHVVVyWF"
echo " .V^.YudMHHVyVVyW@"
echo " ..J9x. .Y~.9jdNHHVVVyVyWM!"
echo " ` ` ` .-T=``` Ta. `.-D-J9(MHHWVVVyyVVVM\ "
echo " ` ` ` ` ` ` ` ..V`!``` ```` 7m, ` ` .J`-J5(MHMVVVVyVyVyVWF"
echo " ` `..dY!``` ` ` ` `` ?N, ` .X=.d=.MHHVVVVyyVyVVVW@"
echo " .JY=`` ` ` ` ``` ` ```?S, .Y' JBY9MWHVVVVyyVyVVyW#!"
echo " ` ` ` ` .(Y`` ` ` `` `` `` ` ``` ` ` ``(U+ J^` .F/(JNNVyyyVyVyVyVVM\ "
echo " ` `..Z`!``` `` `` ` ` ` `` ` `` ` ` `.Tad```.K((+NHVyVVyVVyVyVVWF"
echo " ` ..JY^ `` ` ` `` ` ` ` ` ` `` ` `` ``` `.d'`` J>~1MWHyVVyVyyVyVVW@"
echo " ` .-T=``` ` `` `` ` ` `` `` `` ` ``` ` ` `` `.d'` .F<(dHNVVyyVyVyVVVW#`"
echo " ` `?9J.`` `` ` `` ` ` `` ` ` ` `` ` `` ` ` ` d' ``.K(((MHVVyVVyVyVyVVM^"
echo " ?SJ. `` `` `` `` ` ` ` ` `` `` `` ``` J'` ` J><iMWHVVyyVyVyyVVWF"
echo " ` ?SJ.` `` ` ` `` `` `` `` `` `` ` ` J\``` .F/(dHHVVyVyyVyVVVWF"
echo " ?NJ.`` `` `` ` ` ` ` ` ` `` `` .t` `.#(((NHVVyVyVVyVVyW#`"
echo " ` ..V`` 7WJ.``` ` ` ` ` ` ``` ` ` `` .F```` J><jMWWVyyVyVyVyVVM^"
echo " ` ` ` .JY^ `` ``` 7h,.`` `` `` `` `` ` ` ` d` ` .D;<dHHVyVVyVVVVVWWMp `"
echo " ..V````` ` ` ```` .Th,.` `` ` ` ` ` `` ` .F`` `.#(((NMVyVyyVVyVWHHWHt"
echo " ` .JY^ ` ` ` `` ` ` ` ``.Th,.` `` `` `` ` ` d~ `` J1<jNHWVVyVyVVWHHWHD`"
echo " ` .g8+....... `` ````` `` `` ``.Tm, ` ` ` ` ` K ` `.D><MHHVyVyVVWHWWHD`"
echo " ` .JT=_~???77""""YUXAgJ.....`` `.Tm, ```` `` N ` .K((jNNVyVVVWMWWH@`"
echo " ` ..J`!`` ```` ` `` `` ` ```` _?7TYXa-.-TQ, ` ` ` W.` J1(jMHVVyWWMVWHD`"
echo " ..Y````` `` ` `` `` `` ` ` ` ```` ````` ?`YqMg, ` `J[`.D:+HWHVWHMVWHD`"
echo " +m--........... ``` ``` ` ` ` ` ` ` ``` ?THa,`.b.K/(dHHWHHVWHD`"
echo " .F_!!~__--_~::<<<?777T""""YYYYUUXX&a+JJ-(..........?9adM>`.MMHHVWH``"
echo " .JNgg+gJ+J+JJ+J++++++<+------__(_____((;;<<<~~_-__:<;<??T#` HWNVWH`"
echo " dHQQQQQQQQQQkkkWWppppWHWHHHHHHMMMMMMMMMHHHHqHQQmgggggg&,```.dWMM"
powershell sleep -m 100 && cls && exit /b
:book_3
mode 160,53
echo " ...."
echo " .J^ `(1."
echo " .7! `?&."
echo " .= `?."
echo " .= 7,"
echo " .,= T, .,"
echo " .(^ .6, ` ..7!.M)"
echo " .J^ .G. ` ..7^ ,1#`"
echo " .J' ?i ` ..J`! J`V`"
echo " .J! ?,` ``..?=` .v ` ....."
echo " .J! 4,`` `` ..?^ .t ,= 2"
echo " .v! .G. ` .-=` `.% J .!.."
echo " .v` ?,`.v` .^ J `.%.%G"
echo " `.7` `.tJ` ``.^ J` v v (."
echo " .7` -u= ,! J ,`,!.jF`"
echo " .XI(. `.vJ! ` J` J .\.% P(S"
echo " .= (1(6, ``.=v J J` .r 2 .~rw ` "
echo " .f 4,4,` ` Jj= `.2 J `J`(` r((M- "
echo " .7(.... 7JT, ` `.Y.^ ` .Y J` .'.' ,j%v,\ "
echo " .= 7i,?1, ?&7- ` .^(! .= J .%.% .t2(`...."
echo " `.Td+. 7i,?1, (zJ&. ` ` .J(C `,^ J 2 2 2((^.4W "
echo " I.o, ?4(. 7i.?1,.4J6, `.=.^ .J` .v ,`J J(1%.$D%"
echo " I _71..?1-. .7(.?&,7,4, ,!J! ` ..?7! .= `.\.' ((%Z.$vJ"
echo " ` O ?=(,?4(..7+,7-?+7-.` `.v(= ..7=` ` ...-7! .P.^ ,!ZJ`v,j'"
echo " (C(..((... _7i.?=(,7i,4Jn?i.`` ` `.=,^ ` ..?=` ...?77! J.% .^((>((3%"
echo " ` `.7 _77i.J77i-.. 71-?=(?3dXh-6, ` (1C .-7!..(7=` .ir .\.<%.1rJ"
echo " .J7`..... ?7=+.J71(.?=+v3-7`7+6, ` ` .v(^ `..7i.?=` .$v .%.\v.%J(!"
echo " ?`1(.-?7`1(... ?7=jd0iJV1Xa,(4m. .6v .J0J7! .ZJ v.%(~2.(%"
echo " _?7=+..(?`1(.. ?7TWWgl. ` (zIJS7! ` .......................J=J (_r.^J(%2"
echo " ` ?7=i.-?7C(.. ? yvJI.... ` (ZY7<_. ` J` .:v.%.^2(`"
echo " _?`i.J7i.. M?, ....(-z7771i(.--___~~!?????7777777777! .tv 2.%(->"
echo " ?`1Xa.d[1,3((.... `??777i((+v771(.... `jf J 2.i%"
echo " 7d,?77=1(.. ?71.. _?771(..?771+... ,!J($J"
echo " ?XrwV9WaJ.v=i.._71(.. _?71(..~7i ,'.!v,!"
echo " ?`9WgJv=(..?71(.. ??P`.\-+^"
echo " 7TWkJJ71.. ?7=i(.. ].%.3%"
echo " ?74Wo(Z=i.. ?71(..tv.%J"
echo " ?`1X3(J71(.. `.C v(`"
echo " ?'1dYi(J77! J(&"
echo " ~71JZ77_%"
echo " ?^"
powershell sleep -m 100 && cls && exit /b
:book_4
mode 180,63
echo ` .................. ...(J+ggggggHHHHHgggggg+J......`
echo ` ...+gMM`9``7? ` `~??7`````HMMNNg+-.... ` _?7`T`MMNJ..`
echo ` ..JM#``` _?```HMNag-... ...JgMMH9 ?`WMa,.`
echo ` ..MB= ?7T`MNa+... ...+NMW``^` ?TNa.`
echo ` .d@^ ?7THNg-,. ...gMY`7` (WN,`
echo ` .u@` -7`MgggM9`` .HL.`
echo ` dF 7 MN,`
echo ` .MF MHN`
echo ` .MHF M{M[`
echo ` JFdF M{MN`
echo ` .MFdF M{MM.`
echo ` (MFdF M{MMp`
echo ` .MMMFdF M{MMMN,`
echo ` JMMMMFdF M{MMMMMh`
echo `.MMMMJFdF M{MPMMMM]`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M]MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M[MMMMF`
echo `(MMMNJFdF M{M}MMMMF`
echo `(MMMNJFdF M@M{MMMMF`
echo `(MMMNJFdF M@M{MMMMF`
echo `(MMMNJFdF M@M{MMMMF`
echo `(MMMNJFdF M@M{MMMMF`
echo `(MMMNJFdF M@M{MMMMF`
echo `(MMMNJFdF M@M~MMMMF`
echo `(MMMNJFdF M@M~MMMMF`
echo `(MMMNJFdF M@M~MMMMF`
echo `(MMMNJFdF ` ............ M@M~MMMMF`
echo `(MMMNJFdF ....JggNM````HHMMMMNNgg+(..... ` `````````````````````HMMMNgg....` ` M@M~MMMMF`
echo `(MMMNJFdF ..JgMH``` ` JJJJ((........ `?7```WMMNgJ... ` ` .... gM................. ?7T`MNg-.. M=M MMMMF`
echo `(MMMNJFdF ..gMB` ...(gNMM` ~??7````MMNNgJ... _7``HMNg... ` ...gMM``` .?? ????7``````HMMNagJ... 7TMNJ. ` M?M MMMMF`
echo `(MMMNJFdF .gM`^ ..JgMB`` .NNNNNggggg+(...... _7``MMN ... _7TWNa-.. ` `...gMB`^` ...JgMMB`ggggNNNNNggggg+J...... _?``HMNg... _TMN, M1M MMMMF`
echo `(MMMNJFdF.+#` ..+MY`^ ...JgMMMMMMMMMMMMMMMMMMMMMMMMMMMNg+... ~7`MNg.. .7`MN.. ..gM9=` ..gM#`` ..MMMMMMMMMMMMMMMMMMMMMMMMMNNg... _7`MNa.. 7Ma,MzM MMMMF`
echo `(MMMNJFdM@ ..gM9^ ..JNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNgJ.. _``MNJ, (TMgM9^ ..gMB`` ...gMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNg., ?TMN,..TMzM MMMMF`
echo `(MMMNJF ..MB= ..gMMMMMMMMMMMMMMMMMM ````~ ???77`````WMMMMMMMMMMMMMMMMMMNa,. _`WNa,. ..M#` ..(NMMMMMMMMMM ```_ ???7``````MMMMMMMMMMMMMMMMMMMNa., ?TNg,,N MMMMF`
echo `(MMMNJb.M@^..gMMMMMMMMMMMMMY`` ` ?7T`MMMMMMMMMMMNa, ?YNa.+M` .JMMMMMMMMMMMM``` ?7TWMMMMMMMMMMMMMNJ, -TM# MMMMF`
echo `(MMMNJH=.JMMMMMMMMMMY`=` ?TWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMY`=` ?TWMMMMMMMMMMg, ` MMMMF`
echo `(MMMN.JMMMMMMMMB`` _THMMMMMMMMMMMMMMMMMMMM#` 7TMMMMMMMMm,MMMMF`
echo `(MMMMMMMMMM` ?````````````````= _TMMMMMMMMMMF`
echo `(MMMMMM9^ (TMMMMMMF`
echo `(MMMD .TMMMF`
echo `(B^
powershell sleep -m 100 && cls && exit /b