I didn't put this in beginner because this troubles everyone.
what are you talking about? the only other time ive seen someone ask a question concerning it was me. it might work on windows with mingw or cygwin. dont quote me on that though because i dont develop enough on windows to know. if im wrong, there is probably something in the windows api. i mean they have to have something or they couldnt have made the cd command. worst case scenario you have to make an assembly call