feat: 원도우 폴더 to 구글 드라이브 sync

anonymous·2023년 9월 9일
@echo off

echo "%computername%"

set "SYNC_TARGET_1=C:\FolderPath1"
set "SYNC_TARGET_2=E:\FolderPath2"

If "%computername%"=="DESKTOP-USERCODE" goto :sync
color 04
echo Not %computername%'s PC!
goto :done

:sync
color 02

:to
echo Syncing to Google Drive...
robocopy "%SYNC_TARGET_1%" "%SYNC_TARGET_2%" * /E /XO

:from
echo Syncing from Google Drive...
robocopy "%SYNC_TARGET_2%" "%SYNC_TARGET_1%" * /E /XO

echo Sync Complete.               

:done
pause
profile
기술블로거입니다

0개의 댓글