Batch file basics

Disable echo: Loops over fixed values: Variables: Check file existence: Check variable existence: Numeric comparison: Prompt: Labels: Numeric expression in variable: Pause: Pass all arguments to another executable: String comparison:

SendTo in Windows

You can add batch files or shortcuts to the SendTo directory in Windows, and they’re immediately available when you right-click something in File Explorer. You can use this technique to do whatever you can think of for files and directories. Here are a few basic techniques for working with batch files. View code on GitHub