- Avoid the overcomplicated and overbloated products (like Windows, Office, Outlook, Lync for Business, Teams, SharePoint etc.)
- Learning Linux you learn the Freedom (of choice & of making changes yourself).
Naturally, Microsoft's official opinion is often either "you're using it wrong" or
- oh, this is right, we'll fix it.
- (... 10 years later a post on the msdn forum...)
- Microsoft, hello? The issue is 10 years old!.
SkyDrive (later OneDrive) exists for some time now (launched in 2007 and the article appeared initially in 2013) and 6 years it was missing... the PAUSE BUTTON. Really this is a perl of the Software Development!
Well, there are those friends to help us
WScript (Windows Script)
orVBScript
VisualBasic Script
WMI, Windows Management Instrumentation
.
If any of you revered online gamers and regular users utilize(d) Microsoft's SkyDrive while actively synchronizing something, with low bandwidth like... wait for it... TELEKOM'S uplink speed of 512Kbs (c)... then you knew the pain.
To avoid high pings, you could pause the SkyDrive App! Oh, wait, yuck! There's no button for that!
Solve this by the following script below works like this:
- Running it with an empty line would "PAUSE" the App,
- while running it with a non-empty line would "RESUME" the sync.
Checking the bandwidth usage on the Router Dashboard would confirm that.
Additional Software
Process Hacker is required.
Please replace the path to processhacker.exe
in the script (close to the bottom).
The Script
'version 1 by Max Grass
strin = inputbox("For resuming, type something")
if (strin = "") then
action = "suspend"
else
action = "resume"
end if
strComputer = "."
process = "Skydrive.exe"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = '" & process & "'")
Set WshShell = CreateObject("WScript.Shell")
For Each objProcess in colProcessList
WshShell.Exec("D:\Portable Soft\Process Hacker\ProcessHacker.exe -c -s -ctype process -cobject " & objProcess.ProcessID & " -caction " & action & " ")
Next
wscript.Quit
Update 2015
Microsoft implemented "Pause/Resume" functionality. Good move. However, the "Container"-based technology/concept is still trash.
Update 2023
TIP
You can basically use this trick to pause/resume ANY app if needed (well, almost any).