Onedrive.exe /reset automation

dewey 0 Reputation points
2024-02-14T21:02:47.86+00:00

Hi guys, I'm trying to figure out how to run the command "%localappdata%\Microsoft\OneDrive\onedrive.exe" /reset in a batch file. Since the onedrive exe is in the user's appdata folder, I'm having a hard time creating a script for this.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,403 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 16,195 Reputation points Microsoft External Staff
    2024-02-15T06:03:46.5233333+00:00

    Hi @dewey

    Maybe you could copy Start "" "%localappdata%\Microsoft\OneDrive\onedrive.exe" /reset into a .txt file. Then rename the file extension name to be ".bat".

    • The reference of start - Start a program, command or batch script (opens in a new window).

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.