In a Perl script, I'm trying to execute some shell command as $result=system("some command..."); The command works only if I change to a certain drive which I mapped to. What can I do to let the shell command to happen in the particular drive? I already tried: system("f:"); system("cd \\");