1.    09 Jan 2016 #1
    Join Date : Jan 2016
    Canada
    Posts : 13
    Windows 10

    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
    Join Date : Aug 2015
    Posts : 369
    Windows 10 Pro

    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
    Join Date : Jan 2016
    Canada
    Posts : 13
    Windows 10
    Thread Starter

    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
    Join Date : Dec 2013
    Sydney, Nova Scotia, Canada
    Posts : 10,612
    Windows 10 IoT

    Quote Originally Posted by Wallytek 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.    23 Dec 2016 #5
    Join Date : Dec 2016
    Posts : 1
    Windows 8.1 Pro

    Getting back to the original question


    Quote Originally Posted by alphanumeric 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
    Join Date : Nov 2016
    Posts : 61
    Windows 10 Pro x64

    Could you upload the code of your .bat file so we can have a closer look ?
      My ComputerSystem Spec
  7.    26 Dec 2016 #7
    Join Date : Aug 2014
    Forever West
    Posts : 3,986
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    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
    Join Date : Dec 2013
    Sydney, Nova Scotia, Canada
    Posts : 10,612
    Windows 10 IoT

    Quote Originally Posted by Berton 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

 


Similar Threads
Thread Forum
Newly Rebooted Machine, can't access MS Onedrive on my machine.
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...
Software and Apps
Solved Help - OneDrive/Quick Access bypass not working
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...
General Support
Access to shared folders but no access to save or move files
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
Network and Sharing
Attackers can access Dropbox, Google Drive, OneDrive files without PW.
Source
Windows 10 News
Xbox Access your music collection from OneDrive with Xbox Music app
Source: Access your personal music collection from OneDrive with the Xbox Music app
Windows 10 News
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 13:59.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums