Windows : How to kill Dropbox processes and restart

Post Reply
tong
Site Admin
Posts: 2328
Joined: Fri 01 May 2009 8:55 pm

Windows : How to kill Dropbox processes and restart

Post 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
Post Reply