Windows Command
Copy files
Options
/E → Copy subfolders, including empty ones.
/Z → Restartable mode (resumes if interrupted).
/MT:32 → Multi-threaded copy (32 threads; up to 128).
/R:1 → Retry 1 time on copy failure.
/W:1 → Wait 1 second between retries.
/LOG:file.txt → Write operation log to file.txt.
/MIR → Mirror source to destination (WARNING: can delete files at destination).
Notes
- Use an elevated command prompt (Run as Administrator) if you encounter permission errors.
- For large transfers consider increasing /MT but monitor CPU and disk I/O.
- When using network drives, map them first or use UNC paths (\\server\share).
Get PID / Find running process
Tip
To get more details including the PID, use:
TLS protocol
Show/Set TLS
# Show current value
[Net.ServicePointManager]::SecurityProtocol
# Force .NET to use TLS 1.2 only
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Check Enabled Protocol
Check Cipher Suites
Set Env Variable
If you had Visual Studio running while you were setting the environment variables, you have to restart Visual Studio so that the new environment variables can take effect.