Pause OneDrive sync using cmd












1














I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really slow and onedrive tries to sync the data that is being used. Right now I have to pause it with right clicking the folder and clicking pause but I would like to know the code to stop it with cmd so I can made a .bat file to pause onedrive and then start minecraft. If anyone knows how to do this, please let me know.



Thanks,
Kyle5953c










share|improve this question






















  • I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
    – Ramhound
    Apr 7 '15 at 18:26










  • You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
    – Karan
    Apr 7 '15 at 19:01










  • I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
    – Ƭᴇcʜιᴇ007
    Apr 7 '15 at 19:22












  • You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
    – Sun
    Apr 13 '15 at 16:55










  • Have you tried: taskkill /f /im (onedrive's sync process)?
    – RookieTEC9
    Sep 14 '15 at 14:20
















1














I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really slow and onedrive tries to sync the data that is being used. Right now I have to pause it with right clicking the folder and clicking pause but I would like to know the code to stop it with cmd so I can made a .bat file to pause onedrive and then start minecraft. If anyone knows how to do this, please let me know.



Thanks,
Kyle5953c










share|improve this question






















  • I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
    – Ramhound
    Apr 7 '15 at 18:26










  • You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
    – Karan
    Apr 7 '15 at 19:01










  • I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
    – Ƭᴇcʜιᴇ007
    Apr 7 '15 at 19:22












  • You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
    – Sun
    Apr 13 '15 at 16:55










  • Have you tried: taskkill /f /im (onedrive's sync process)?
    – RookieTEC9
    Sep 14 '15 at 14:20














1












1








1







I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really slow and onedrive tries to sync the data that is being used. Right now I have to pause it with right clicking the folder and clicking pause but I would like to know the code to stop it with cmd so I can made a .bat file to pause onedrive and then start minecraft. If anyone knows how to do this, please let me know.



Thanks,
Kyle5953c










share|improve this question













I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really slow and onedrive tries to sync the data that is being used. Right now I have to pause it with right clicking the folder and clicking pause but I would like to know the code to stop it with cmd so I can made a .bat file to pause onedrive and then start minecraft. If anyone knows how to do this, please let me know.



Thanks,
Kyle5953c







windows command-line sync cmd.exe onedrive






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 7 '15 at 18:21









kyle5953c

612




612












  • I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
    – Ramhound
    Apr 7 '15 at 18:26










  • You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
    – Karan
    Apr 7 '15 at 19:01










  • I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
    – Ƭᴇcʜιᴇ007
    Apr 7 '15 at 19:22












  • You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
    – Sun
    Apr 13 '15 at 16:55










  • Have you tried: taskkill /f /im (onedrive's sync process)?
    – RookieTEC9
    Sep 14 '15 at 14:20


















  • I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
    – Ramhound
    Apr 7 '15 at 18:26










  • You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
    – Karan
    Apr 7 '15 at 19:01










  • I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
    – Ƭᴇcʜιᴇ007
    Apr 7 '15 at 19:22












  • You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
    – Sun
    Apr 13 '15 at 16:55










  • Have you tried: taskkill /f /im (onedrive's sync process)?
    – RookieTEC9
    Sep 14 '15 at 14:20
















I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
– Ramhound
Apr 7 '15 at 18:26




I am not aware of a method to control OneDrive from just a command console by itself. You can pause it through windows explorer though.
– Ramhound
Apr 7 '15 at 18:26












You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
– Karan
Apr 7 '15 at 19:01




You can write an AutoIt/AHK script I suppose to automate the right-clicking and pausing, then execution of Minecraft. As for script access to OneDrive sync directly, perhaps it's possible via PowerShell and the Live API: 1, 2, 3.
– Karan
Apr 7 '15 at 19:01












I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
– Ƭᴇcʜιᴇ007
Apr 7 '15 at 19:22






I don't have a window s8.1 machine in front of me, but I'm pretty sure OneDrive still uses skydrive.exe in the windowssystem32 folder. Try skydrive /shutdown to stop it...
– Ƭᴇcʜιᴇ007
Apr 7 '15 at 19:22














You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
– Sun
Apr 13 '15 at 16:55




You can also use process -s onedrive.exe from beyondlogic to sleep the process. You run the same command line to resume.
– Sun
Apr 13 '15 at 16:55












Have you tried: taskkill /f /im (onedrive's sync process)?
– RookieTEC9
Sep 14 '15 at 14:20




Have you tried: taskkill /f /im (onedrive's sync process)?
– RookieTEC9
Sep 14 '15 at 14:20










3 Answers
3






active

oldest

votes


















2














You can stop it by running a batch file that will loop so it will stop onedrive until you exit:



:Loop
Taskkill /f /im onedrive.exe
Goto loop


If you want to do it manually, then simply just do Taskkill /f /im onedrive.exe



Please run this batch file once you have started minecraft.
Tested on Windows 7






share|improve this answer





























    0














    Use pssuspend
    https://technet.microsoft.com/en-us/sysinternals/pssuspend



    pssuspend onedrive
    minecraft
    pssuspend -r onedrive






    share|improve this answer





























      0














      A more graceful way to stop OneDrive than TASKILL or PSSUSPEND is:



      %LOCALAPPDATA%MicrosoftOneDriveOneDrive.exe /shutdown





      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f898838%2fpause-onedrive-sync-using-cmd%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        You can stop it by running a batch file that will loop so it will stop onedrive until you exit:



        :Loop
        Taskkill /f /im onedrive.exe
        Goto loop


        If you want to do it manually, then simply just do Taskkill /f /im onedrive.exe



        Please run this batch file once you have started minecraft.
        Tested on Windows 7






        share|improve this answer


























          2














          You can stop it by running a batch file that will loop so it will stop onedrive until you exit:



          :Loop
          Taskkill /f /im onedrive.exe
          Goto loop


          If you want to do it manually, then simply just do Taskkill /f /im onedrive.exe



          Please run this batch file once you have started minecraft.
          Tested on Windows 7






          share|improve this answer
























            2












            2








            2






            You can stop it by running a batch file that will loop so it will stop onedrive until you exit:



            :Loop
            Taskkill /f /im onedrive.exe
            Goto loop


            If you want to do it manually, then simply just do Taskkill /f /im onedrive.exe



            Please run this batch file once you have started minecraft.
            Tested on Windows 7






            share|improve this answer












            You can stop it by running a batch file that will loop so it will stop onedrive until you exit:



            :Loop
            Taskkill /f /im onedrive.exe
            Goto loop


            If you want to do it manually, then simply just do Taskkill /f /im onedrive.exe



            Please run this batch file once you have started minecraft.
            Tested on Windows 7







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 14 '15 at 14:58









            RookieTEC9

            879728




            879728

























                0














                Use pssuspend
                https://technet.microsoft.com/en-us/sysinternals/pssuspend



                pssuspend onedrive
                minecraft
                pssuspend -r onedrive






                share|improve this answer


























                  0














                  Use pssuspend
                  https://technet.microsoft.com/en-us/sysinternals/pssuspend



                  pssuspend onedrive
                  minecraft
                  pssuspend -r onedrive






                  share|improve this answer
























                    0












                    0








                    0






                    Use pssuspend
                    https://technet.microsoft.com/en-us/sysinternals/pssuspend



                    pssuspend onedrive
                    minecraft
                    pssuspend -r onedrive






                    share|improve this answer












                    Use pssuspend
                    https://technet.microsoft.com/en-us/sysinternals/pssuspend



                    pssuspend onedrive
                    minecraft
                    pssuspend -r onedrive







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 29 '16 at 10:47









                    Max

                    238310




                    238310























                        0














                        A more graceful way to stop OneDrive than TASKILL or PSSUSPEND is:



                        %LOCALAPPDATA%MicrosoftOneDriveOneDrive.exe /shutdown





                        share|improve this answer


























                          0














                          A more graceful way to stop OneDrive than TASKILL or PSSUSPEND is:



                          %LOCALAPPDATA%MicrosoftOneDriveOneDrive.exe /shutdown





                          share|improve this answer
























                            0












                            0








                            0






                            A more graceful way to stop OneDrive than TASKILL or PSSUSPEND is:



                            %LOCALAPPDATA%MicrosoftOneDriveOneDrive.exe /shutdown





                            share|improve this answer












                            A more graceful way to stop OneDrive than TASKILL or PSSUSPEND is:



                            %LOCALAPPDATA%MicrosoftOneDriveOneDrive.exe /shutdown






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 13 at 18:12









                            NutCracker

                            11




                            11






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f898838%2fpause-onedrive-sync-using-cmd%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Probability when a professor distributes a quiz and homework assignment to a class of n students.

                                Aardman Animations

                                Are they similar matrix