首页 > 其他 > 详细

VSCode的备份和还原

时间:2019-04-14 19:23:37      阅读:529      评论:0      收藏:0      [点我收藏+]

建立.bat脚本分别放入以下两端代码

备份.bat

@echo off
set source1="C:\Users\%USERNAME%\AppData\Roaming\Code"
set target1=".\Code"

set source2="C:\Users\%USERNAME%\.vscode"
set target2=".\.vscode"


xcopy "%source1%" "%target1%" /e /y /d /i
xcopy "%source2%" "%target2%" /e /y /d /i

还原.bat

@echo off
set source1=".\Code"
set target1="C:\Users\%USERNAME%\AppData\Roaming\Code" 

set source2=".\.vscode"
set target2="C:\Users\%USERNAME%\.vscode" 


xcopy "%source1%" "%target1%" /e /y /d /i
xcopy "%source2%" "%target2%" /e /y /d /i

VSCode的备份和还原

原文:https://www.cnblogs.com/wittxie/p/10706442.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!