Pausing / resuming Dropbox from the command line (Windows)

6

6

Is there a way to pause and resume Dropbox from the command line?

I'm running Dropbox as a normal installation (no Windows Service)

I don't want to KILL or freeze the Dropbox process. I want it to go to 'Suspended' mode like it does when clicking on 'Pause syncing'.

cheesus says stop firing mods

Posted 2013-12-27T10:50:16.697

Reputation: 1 106

Did you succeed? – brcebn – 2015-07-06T12:17:41.303

Answers

3

It appears that Dropbox on Windows does not offer command line options to pause and resume.

What I found effective is to actually suspend the Dropbox process. One way to do that is to use sysinternals utility pssuspend

Once that's available in the default search path, one can issue commands from the commandline like

pssuspend Dropbox

to suspend the Dropbox process and

pssuspend -r Dropbox

to resume it.

At the beginning I was worried that Dropbox would fail to synchronize files changed while Dropbox process was suspended but it seems that the file-system change notifications are queued up correctly.

Marco L.

Posted 2013-12-27T10:50:16.697

Reputation: 71

1This seemed like a great end around, but it's not working for me on Win10. Dropbox suspends just fine, but resuming it doesn't kick off another sync. Tried with changing files and adding new ones to the folder while suspended and nothing got sync'd. – Mordred – 2018-01-03T17:47:05.410

1

Why don't you create an outbound rule in the firewall and then turn it on and off in a batch file:

netsh advfirewall firewall set rule name="Dropbox" new enable=yes

and

netsh advfirewall firewall set rule name="Dropbox" new enable=no

user905496

Posted 2013-12-27T10:50:16.697

Reputation: 11

1This will cut the Dropbox process' network activity. Unfortunately that won't help. I need the Dropbox process to stop accessing files. – cheesus says stop firing mods – 2018-05-17T07:44:27.227

0

At the time being (DropBox for Windows version 3.4.4) there is NO command line available (except for "/home" that opens the dropbox folder). There is a request on dropbox forum to add it, but the company has not added it yet

Matteo Mangano

Posted 2013-12-27T10:50:16.697

Reputation: 1