Can I access OneDrive in DOS

Page 2 of 2 FirstFirst 12

  1. Posts : 2
    Windows 10
       #11

    Question


    ricardobohner said:
    @lafleurh What is your question?


    What happens if the file is not stored locally with the command line?
      My Computer


  2. Posts : 5,478
    2004
       #12

    lafleurh said:
    What happens if the file is not stored locally with the command line?
    It doesn't work.

    Similarly if you use robocopy to mirror OneDrive to backup destination it will create zero sized backup files which is annoying.
      My Computer


  3. Posts : 456
    Windows 10
       #13

    @lx07: Since Windows 10 Fall Creators update you can use the attrib command to make online-only files available offline.

    For example, you have a file called file.txt in your Games folder that is available online only and you want to copy it to your desktop:

    Code:
    attrib +p -u %userprofile%\onedrive\Games\file.txt
    copy %userprofile%\onedrive\Games\file.txt %userprofile%\desktop
    attrib -p +u %userprofile%\onedrive\Games\file.txt
    attrib -p +u would make the file available online only again

    If you want to make all files in Games available offline:

    Code:
    attrib +p -u /s %userprofile%\onedrive\Games
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:38.
Find Us




Windows 10 Forums