Only Linux user, I wandered how I could convince my friends to give a try to syncthing. Strangely, even after several months of harrasment and punctilious hard work on translation with transifex for French I didn’t get any success, although it is well known that most Win users are kind of “Install-first-think-after”… Maybe this is thanks to my warnings… or because of my complicated/crappy advices Whatever, I don’t throw in the towel, and for the end of year gifts I will offer them a portable USB stick with ST Here is the job: Stick layout: \Program\32bits \Program\64bits \Shares Files: \autorun.inf: [autorun] open=Program\syncthing.bat label=Start syncthing icon=syncthing.ico #optionnal line. Remove if you don’t want/care with stick icon
[Content] MusicFiles=false PictureFiles=false VideoFiles=false
[MesCouilles] AutoRunIsRemovedFromWindows7+=true (du cul)
\StartManu.bat: @echo OFF echo. echo ****** INFO 1 ****** echo To cancel now, hit Ctrl+C echo. echo. echo. echo. echo. echo ****** INFO 2 ****** echo Once I run, you should stop syncthing if you want to eject the USB stick: echo. echo by clicking “Action->Shutdown” in the management web page. echo. echo. echo. echo. echo. PAUSE call .\Program\syncthing.bat
/If You Redistribute.txt: IMPORTANT!!! Keep this file if you redistribute. Subfolder x:\Program\Syncthing MUST NOT EXIST. It will be created/populated on first run. It contains user’s secret key.
\Program\syncthing.bat: @echo off %~d0 IF %~d0==C: GOTO WARN IF %~d0==D: GOTO WARN cd “%~dp0” IF %ERRORLEVEL%==0 GOTO PATH_IS_OK exit :PATH_IS_OK set STNODEFAULTFOLDER=1 IF NOT %PROCESSOR_ARCHITECTURE% == x86 GOTO ST64 ELSE ( start “syncthing” /B /LOW .\32bits\syncthing.exe --no-console --home="%~dp0\Syncthing" exit ) :ST64 start “syncthing” /B /LOW .\64bits\syncthing.exe --no-console --home="%~dp0\Syncthing" exit :WARN echo. echo. echo *** This is no more INFO, this is a problem *** echo It seems you launched me from your HDD, but I am a launcher for a portable setup. echo Hit a key to kill me. Whatever, I won’t do anything else. echo Bye bye PAUSE exit
\Program\syncthing.ico: unsheathe your GIMP # optionnal
\Program\32bits\syncthing.exe: 32 bits \Program\64bits\syncthing.exe: 64 bits