Windows 10: Can I access OneDrive in DOS Solved

  1.    09 Jan 2016 #1

    Can I access OneDrive in DOS


    I use DOS (specifically the WinZip Command Line Add-On) to backup my files. Have been for years and years. I can't figure how to address OneDrive in my .bat file. Can it be done? If so can someone point me to the solution.

    Thanks
    Wally
      My ComputerSystem Spec

  2.    09 Jan 2016 #2

    Firstly, Windows 10 does not have "DOS". Apparently, you are talking about command line interface.

    Secondly, OneDrive stores all its files in some specific location on your machine. All these files are regular files accessible as any other file. There's nothing special about them. By default, OneDrive directory is 'Users\<Your User Name>\OneDrive'
      My ComputerSystem Spec

  3.    09 Jan 2016 #3

    Thank you Andrey for the info on OneDrive.

    And, you may call it Command Line Interface or anything you want, but old guys like me still execute ye ole DOS commands which are still in Windows 10.

    Wally
      My ComputerSystem Spec

  4.    09 Jan 2016 #4

    Wallytek said: View Post
    Thank you Andrey for the info on OneDrive.

    And, you may call it Command Line Interface or anything you want, but old guys like me still execute ye ole DOS commands which are still in Windows 10.

    Wally
    This will sound like nit picking but he's right. It's not DOS, its a command prompt window with DOS "like" commands. I'm old and old school, but I don't call it DOS, I call it what it is. It's a command line interpreter. There is a big difference between the two. Anyway it should be C: \Users\your user name\OneDrive\. That's where it shows up locally for me. Put a file(s) in there and it will likely sync them to the online equivalent folder.
      My ComputerSystem Spec


  5. Posts : 1
    Windows 8.1 Pro
       23 Dec 2016 #5

    Getting back to the original question


    alphanumeric said: View Post
    This will sound like nit picking but he's right. It's not DOS, its a command prompt window with DOS "like" commands. I'm old and old school, but I don't call it DOS, I call it what it is. It's a command line interpreter. There is a big difference between the two. Anyway it should be C: \Users\your user name\OneDrive\. That's where it shows up locally for me. Put a file(s) in there and it will likely sync them to the online equivalent folder.
    Not to be snarky, but I am less worried about what folks call the CLI and more worried about a complete answer to the original question:
    Can OneDrive be accessed from the CLI? The way I intend the question is:
    Can a user share a file on OneDrive (for Business) and then access it from anywhere, on any machine (in the enterprise,) using a batch file, or Powershell script, or VB Script, or whatever version of command line functionality you wish to use to circumvent the error-prone wetware between the chair and the computer?
      My ComputerSystem Spec

  6.    26 Dec 2016 #6

    Could you upload the code of your .bat file so we can have a closer look ?
      My ComputerSystem Spec


  7. Posts : 3,901
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       26 Dec 2016 #7

    This is from the Getting started with OneDrive.docx file in the OneDrive Folder on my computer:
    Share files
    You can share individual files and even entire folders without attaching anything. Send an email with a link to what you’d like to share—and rest assured that everything else in your OneDrive will stay private. To share items from the OneDrive website, just select the check box in the upper-right corner of the item and choose Share.
    Maybe all you need to share is the link to your OneDrive storage.
    Can I access OneDrive in DOS Attached Files
      My ComputerSystem Spec

  8.    26 Dec 2016 #8

    Berton said: View Post
    This is from the Getting started with OneDrive.docx file in the OneDrive Folder on my computer:

    Maybe all you need to share is the link to your OneDrive storage.
    I'm not sure that will work, here is the link to my OneDrive Public folder, https://1drv.ms/f/s!AjOYwiwlwDtpgUMsp2qnevKpGEHb < That is what you get if you right click and select "Share a OneDrive Link".
      My ComputerSystem Spec


 

Related Threads
Hey Everyone, Today, I rebooted my machine and did a clean install of Windows 10 Pro. I installed all my apps etc and then tried to access onedrive and it gave me a sign in screen. I put in my correct information and it won't let me sign in at...
I am getting a bit frustrated with Windows 10 Pro and not sure what to try. So I do not want to use OneDrive or Quick Access. One of the first things I did was go to folder options and changed "open file explorer to:" this PC instead of quick...
Clean install of w10. I am signed in w/a local account which is also an admin account on the PC I'm saving/moving too. I have read/write access to these folders but I cannot save to the folders. Any idea what's going on? 33597
Source: Access your personal music collection from OneDrive with the Xbox Music app
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 01:18.
Find Us