本工具主要用于多电脑之间存档携带,方便便携玩家
源代码:
--------------分割线----------------------
@echo off
color 1F
title 植物大战僵尸存档转移器 PVZ File Transfer
ver|find "5.">nul && goto XP
:Main
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo 1.存档 Save(Win7 to XP)
echo=
echo 2.读档 Load (XP to Win7)
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
choice /c:12 /n
if "%errorlevel%"=="1" goto load
if "%errorlevel%"=="2" goto save
:Load
if exist "%ProgramData%\PopCap Games\PlantsVsZombies\userdata" (
color 5F
cls
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo 本机已含有Win7存档,是否覆盖?
echo 确认请按Y
echo This computer already has file, are you sure want to cover it
echo Press Y to confirm
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
choice /c:Y /n
if "%errorlevel%"=="y" goto load
)
del "%ProgramData%\PopCap Games\PlantsVsZombies\userdata\*.*" /q
xcopy "%cd%\userdata" "%ProgramData%\PopCap Games\PlantsVsZombies\userdata\" /s /e
ping 127.1>nul
exit
:Save
if not exist "%ProgramData%\PopCap Games\PlantsVsZombies\userdata" (
color 4F
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo 检测到本机没有Win7存档,请使用读档或开始新游戏
echo 请按任意键退出
echo This computer doesn't has files, please load or play new game
echo Press any key to exit
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
pause>nul
exit
)
del "%cd%\userdata\*.*" /q
xcopy "%ProgramData%\PopCap Games\PlantsVsZombies\userdata" "%cd%\userdata\" /s /e
ping 127.1>nul
exit
:XP
color 4F
echo XP系统无需转移存档
ping 127.1>nul
--------------分割线----------------------
复制到记事本保存并改后缀bat,然后放到游戏目录下