in reply to Perl on cygwin

If you want to change the working directory, use chdir. Using system, even if it worked, would just change it in the child process, which would do you no good.