Page 1 of 1

Windows : How to kill Dropbox processes and restart

Posted: Fri 13 Nov 2020 9:03 pm
by tong
Since Dropbox Windows doesn't support any command line switch. Sometime we working with large files, we can't rename or move folder while Dropbox syncing. We can't scripting pause and resume Dropbox sync.

There are 2 workarounds:

Code: Select all

Run Once:
netsh advfirewall firewall add rule name="DB_Block" program="C:\Program Files (x86)\Dropbox\Client\Dropbox.exe" dir=out action=block enable=no

Pause:
netsh advfirewall firewall set rule name="DB_Block" new enable=yes

Resume:
netsh advfirewall firewall set rule name="DB_Block" new enable=no

Code: Select all

Kill:
"%windir%\system32\taskkill.exe" /F /IM dropbox.exe

Restart:
start "" "C:\Program Files (x86)\Dropbox\Client\Dropbox.exe"
Note:

1. When have whitespace in the path and use double quote, start command will see as windows title.

2. New Dropbox version will install at C:\Program Files (x86)\Dropbox\Client\ instead of %APPDATA%\Dropbox