diff --git a/index.html b/index.html index 090157f2..2148b2e8 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,8 @@ - - + + + + + + + + + +
+ + + + + + + + \ No newline at end of file diff --git a/web.config b/web.config new file mode 100644 index 00000000..fad252c6 --- /dev/null +++ b/web.config @@ -0,0 +1,6 @@ + + + + + + diff --git "a/\345\220\214\346\255\245\344\271\246\347\255\276.bat" "b/\345\220\214\346\255\245\344\271\246\347\255\276.bat" new file mode 100644 index 00000000..e1290a18 --- /dev/null +++ "b/\345\220\214\346\255\245\344\271\246\347\255\276.bat" @@ -0,0 +1,33 @@ +@echo off +chcp 65001 >nul +setlocal enabledelayedexpansion + +:: 获取当前用户名 +echo. +echo 当前用户:%USERNAME% + +:: 获取AppData目录路径 +set targetPath=C:\Users\%USERNAME%\AppData\Local\google\Chrome\User Data\Default\Bookmarks +set sourcePath=%cd%\json\pintree.json + +:: 输出选项 +echo 请选择一个选项: +echo. +echo "1 %targetPath% 覆盖 %sourcePath%" +echo. +echo "2 %sourcePath% 覆盖 %targetPath%" + +set /p choice=请输入选项编号(1或2): + +if "%choice%"=="1" ( + copy "%targetPath%" "%sourcePath%" + echo 文件已复制 %sourcePath% +) else if "%choice%"=="2" ( + copy "%sourcePath%" "%targetPath%" + echo 文件已覆盖 %appdataPath% +) else ( + echo 无效的选项 +) + +endlocal +pause \ No newline at end of file