Raymond Chen explains how Windows Explorer and batch scripts can launch the same executable with different working directories.
When you look at a file reference, it’s easy to tell if it’s an absolute or relative reference. You look at the first character. If it’s a slash (/), it’s absolute. If it’s a tilde (~), it’s also ...