In MS-DOS you could change the path separator backslash (\) to a normal slash (/). For this you had to change the SWITCHCHAR parameter in config.sys. Paths used in this example document generally looked more like Linux paths instead of Windows. /dev/ could even be enabled. To this day, navigation with forward slashes is still possible as well (e.g. cd C:/ProgramData)

According to Larry Osterman (archived), a long-time Microsoft employee, the backslash was chosen because the normal slash was already occupied by IBM for command line options.

When Windows introduced its code pages to support other characters, the backslash was replaced by the Yen (¥) and the Won character (₩) in the japanese (code page 932) and korean versions (code page 949). This made these characters the path separator instead of the backslash in the respective languages.

While it is used widely now, the origin of the backslash seems to be unknown. According to the Wikipedia article it has been around since at least 1937, but its function at that time is not known.