use File::Spec; my $fileWithPath = File::Spec->catfile('f:', 'php', 'php-cgi.exe')