Jump to content

Need to restart OneDrive if CCleaner closed it during a cleaning cycle.

Recommended Posts

I recently moved to a new windows 11 PC and this PC does not hide the OneDrive Icon  in the system tray whereas my old Windows 10 PC did hide the icon.  One thing that I noticed on this new PC is that if I run CCleaner and check the box to clean OneDrive it prompts me indicating that to continue, I most close OneDrive.  That works but there's nothing setup in the application to open OneDrive backup. Can you please add that capability to the application to reopen OneDrive if CCleaner closed it?  Thanks. 

Link to comment
Share on other sites

  • 5 months later...

I have automated the closing of OneDrive and loading of CCleaner with a batch, as follows...

echo "Stopping OneDrive"
"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /shutdown
echo "Starting CCleaner"
"C:\Program Files\CCleaner\CCleaner64.exe"

Once I've done my clean, I run the following batch to restart OneDrive, again, silently.

start "OneDrive" /B "C:\Program Files\Microsoft OneDrive\OneDrive.exe" /background

Ensure the paths in the above are correct for your system.

Hope this helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.