UpTricks

Robocopy backup script

@echo off
for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G
set year=%datetime:~0,4%
set month=%datetime:~4,2%
set day=%datetime:~6,2%
robocopy "
C:\Users\Admin" "E:\%year%-%month%-%day% Backups\%COMPUTERNAME" /MIR /MT:32 /W:5

/MIR mirrors the directories (Any files in the destination WILL BE DELETED, be careful to use this with a brand new folder)
/MT:32 copies files with 32 threads
/W:1 waits 1 second between retries (if a file is inexistent, or access is denied)
/R:10 retries 10 times before giving up (Robocopy's default is 1000, and that could really hold things up when the files you're getting stuck on are cache or temp files/most of the time!)

If you want more info on Robocopy switches, check out this link.

cURL tricks

cURL is a program that can fetch information over http and gopher, printing directly to your command prompt or a file if desired.
It's comparable to wget, but wget's better optimized for downloading large quantities of files. cURL also comes with Windows 10!
Or, if you don't have it, you can find it on the cURL website.

For more info on cURL's usage, try typing "curl --help".

Here are a couple sites you can use straight from curl:


Linux

arecord -r 48000 | aplay
monitors the line input (cassette player, walkman, mp3 player, really anything) to the speakers. Of course on Windows you can monitor the device in the Sound control panel too.