VSCode的備份和還原


建立.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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM