1
General Discussion / Son of a bitch, the social contract is shit!!
« on: October 24, 2014, 05:16:21 am »
Son of a bitch, the social contract is shit!the whitepaper is shit!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
@Echo off
rem +-------------------------------------------------+
rem | jetainm At:2014-08-05 14:27:19 |
rem | 功能:Windows一键迁移BtsX数据文件到你想要的目录|
rem +-------------------------------------------------+
rem +--------------------------------------------------------+
rem |请完成下面2个步骤,然后将该文件保存为StartBtsX.bat |
rem |然后双击该文件即可自动完成BtsX数据目录迁移和启动BtsX |
rem +--------------------------------------------------------+
set BtsX= 1、将这一段汉字替换成你的btsx安装目录,举例:E:\DigitalCoin\PTS\BitSharesX
set data= 2、将这一段汉字替换成你想要的BtsX数据目录,不要包含中文,举例:E:\DigitalCoin\PTS\BitSharesX\data
if exist "%data%\BitShares X" (goto StartBtsX) else (goto cp)
rem 迁移数据
:cp
echo BtsX数据正在从C盘迁移到%data%,请稍等...
mkdir "%data%\BitShares X" > nul
echo d | xcopy "%appdata%\BitShares X" /s "%data%\BitShares X" /e/h > nul
echo 数据迁移完毕,C盘数据文件仍保留
goto FirstStart
:FirstStart
set appdata=%data%
cd /d "%BtsX%"
start .\bin\BitSharesX.exe
echo BtsX数据迁移后,第一次启动中(会闪退,请不要手动关闭,等待30s她会自动重启)
ping 1.1.1.1 -n 1 -w 30000 > nul
taskkill /f /t /fi "WINDOWTITLE eq BitShares*" > nul
echo BtsX数据迁移后,第二次启动中,请稍等...
ping 1.1.1.1 -n 1 -w 10000 > nul
start .\bin\BitSharesX.exe
echo +----------------------------------------------------------+
echo +恭喜您,BtsX数据目录成功迁移,并且已经用新的数据目录启动!+
echo +以后用新的数据目录启动都需要双击本文件 +
goto ad
rem 正常启动BtsX
:StartBtsX
set appdata=%data%
cd /d "%BtsX%"
start .\bin\BitSharesX.exe
goto ad
:ad
echo +----------------------------------------------------------+
echo +已启动,如果有报错请手动关闭BtsX窗口并再次运行本脚本。 +
echo +同步完成后欢迎打赏,BtsX用户名:jetainm +
echo +----------------------------------------------------------+
rem echo 10秒后本窗口自动关闭 o(∩_∩)o
rem ping 1.1.1.1 -n 1 -w 10000 > nul
pause