Skip to content

Instantly share code, notes, and snippets.

@vyach-vasiliev
Created April 12, 2021 13:24
Show Gist options
  • Save vyach-vasiliev/28ce7b14e853cec084a2c387a3ad67bc to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/28ce7b14e853cec084a2c387a3ad67bc to your computer and use it in GitHub Desktop.
OneDrive command line to free up

According to this microsoft post it is possible to call Attrib.exe to do that sort of manipulation on files.

Attrib.exe enables 2 core scenarios. attrib -U +P /s, makes a set of files or folders always available and attrib +U -P /s, makes a set of files or folders online only.

Free up

attrib +U -P "destination path"

Source: https://stackoverflow.com/a/56601751/6220986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment