Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Craftopiaのセーブデータをお手軽にバックアップするbatファイル
set time2=%time: =0%
::設定例
::xcopy "C:\Users\%USERNAME%\AppData\LocalLow\PocketPair\Craftopia\Save" "%USERPROFILE%\Desktop\Craftopia\Save%date:~0,4%%date:~5,2%%date:~8,2%_%time2:~0,2%%time2:~3,2%" /I /E /H /C
::xcopy "保存元" "保存先 %date:~0,4%%date:~5,2%%date:~8,2%_%time2:~0,2%%time2:~3,2%" /I /E /H /C
::
::実行した場合の保存例(日時2020年10月19日22時00分)
::C:\Users\hoge\Desktop\Craftopia\Save20201019_2200
::上記アドレスにNew World-フォルダ内すべてのフォルダ・ファイルがコピーされる
::
::備考
::%date:~0,4%%date:~5,2%%date:~8,2%_%time2:~0,2%%time2:~3,2% は日時や時間を追加するための変数
::
xcopy "C:\Users\%USERNAME%\AppData\LocalLow\PocketPair\Craftopia\Save" "%USERPROFILE%\Desktop\Craftopia\Save%date:~0,4%%date:~5,2%%date:~8,2%_%time2:~0,2%%time2:~3,2%" /I /E /H /C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment