When I plan sync with dropbox I start a .bat file.
In case dropbox is active, the script is running normally
In case dropbox is not actieve dropbox.exe is started but the script doesn't continue unless I select the window ( eg by mouseclick).
Start /c doesn't solve.
@echo offset path="C:\Program Files\WinRAR\";"c:\Program Files (x86)\Dropbox\Client\";"c:\Program Files\Microsoft Office\root\Office16\";%path%start dropbox.exerem C:\Windows\System32\cmd.exe /c "PowerShell.exe -NoProfile -Command Clear-RecycleBin"echo:echo: !!! Zijn alle bestanden en toepassingen gesloten ? echo:choice /C MZC /M "...>>>...Maak een keuze M voor incl pst, Z zonder pst, C om te stoppen."echo:if errorlevel 3 goto 3if errorlevel 2 goto 2if errorlevel 1 goto 1:1ECHO: Alleen de gewijzigde data INCL. PST worden verwerkt - kan ook dat er geen zijn !Echo:rem TASKKILL /IM OUTLOOK.EXEEcho: Met PSTrem winRAR a -ao -ac -ed -oni - etc rem winRAR a -ao -ac -ed -oni - etcpauseexit:2ECHO: Alleen de gewijzigde data ZONDER PST worden verwerkt - kan ook dat er geen zijn !Echo:rem winRAR a -ao -ac -ed -oni - etcecho: Zonder PSTpauseexitexit