Well there is a lot to be confused about, in the above example, I should imagine the intention was to NOT include a blackslash before bar and baz (otherwise the end result is changing the directory to 'baz' on the root of the C drive, meaning the cd to \foo and \bar and redundant).