Last active
October 3, 2021 12:28
-
-
Save Techlogist/7b5ab01e22ecf5503eadccc809d306ca to your computer and use it in GitHub Desktop.
Free File Sync automatically during Windows 10 startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/batch/ | |
REM Description: | |
REM OS/Language/Region: Windows/EN-US | |
REM IMPORTANT : Always place the script at the startup folder for the user | |
REM IMPORTANT : ie: C:\Users\%miguel%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
REM IMPORTANT : Replace %miguel% with the correct username | |
REM IMPORTANT : Add the path to each .ffs_batch in the :_run label | |
:_start | |
REM Start of script | |
@echo off | |
cls | |
title FreeFileSync Batch Runner v 1.0 | |
color f0 | |
mode con:cols=70 lines=15 | |
goto _set_folders | |
:_set_folders | |
set _Free_File_Sync_Exe=C:\Program Files\FreeFileSync | |
:_FreeFileSync | |
REM This routine will advise the user to install FreeFileSync because its missing and log it. | |
cls | |
color | |
IF EXIST "%_Free_File_Sync_Exe%\FreeFileSync.exe" (goto _run) else (goto _Free_File_Sync_unavailable) | |
goto _FreeFileSync | |
:_Free_File_Sync_unavailable | |
REM The error screen for FreeFileSync is missing | |
color 47 | |
cls | |
echo ---------------------------------------------------------------------- | |
echo. | |
echo. | |
echo. | |
echo. | |
echo. | |
echo FreeFileSync is unavailable. Please install! | |
echo. | |
echo. | |
echo. | |
echo. | |
echo. | |
echo ---------------------------------- ---------------------------------- | |
pause | |
color f0 | |
goto EOF | |
:_run | |
REM Add a line with the path to each .ffs_batch file | |
REM "%_Free_File_Sync_Exe%\FreeFileSync.exe" "D:\File_Path.ffs_batch" | |
REM Change the "D:\File_Path.ffs_batch" to the one of your choice | |
cls | |
echo. | |
echo The file sync is running.... | |
echo. | |
REM Add the .ffs_batch location below | |
echo. | |
"%_Free_File_Sync_Exe%\FreeFileSync.exe" "D:\File_Path.ffs_batch" | |
goto EOF | |
:EOF | |
cls | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment