Skip to content

Instantly share code, notes, and snippets.

@andysign
Last active July 7, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andysign/d396b6b36c057dcf7025b2bb3b382c47 to your computer and use it in GitHub Desktop.
Save andysign/d396b6b36c057dcf7025b2bb3b382c47 to your computer and use it in GitHub Desktop.
readme-w10-cp4.txt
# COPY: https://adamtheautomator.com/robocopy-mir/
echo "" > /log.txt; robocopy D:\Articles\SourceDirectory\ D:\Articles\DestinationDirectory /v /MIR > /log.txt
# NAS_MAPPING: https://lazyadmin.nl/it/mapping-a-network-drive-in-windows-10/
net use
net use u: \\servername\folder /persistent:yes
#OR: net use u \\servername\folder /p:yes
net use u: /delete
# FOLDER_SIZE: https://superuser.com/questions/837016/
$totalsize=[long]0;gci -File -r -fo -ea Silent|%{$totalsize+=$_.Length};$totalsize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment