I use both windows and Linux and often I got confused when I use command lines…
1>MS-DOS use backslash like C:\Documents and Settings\user_name\Desktop\
2>Linux use slash like /usr/lib
3>URL seems to use slash like http://stackoverflow.com/questions/ask
4>C++/C programmer often use backslash as the escape character like \n or \t or \"
Item 1-3 can be confusing plus the effect of item 4.
I am wondering why MS-DOS doesn’t use (forward) slash just as everything else, and then we can only use the special backslash as the escape character.
This has been answered at superuser: https://superuser.com/questions/176388/why-does-windows-use-backslashes-for-paths-and-unix-forward-slashes
Let me quote the gist of it: