A previous post might be useful: Perl system() call failed with return code 65280
Again, I've used this code many times, but it doesn't work here. I've moved all other perl instances from PATH.
Source:
$targetDir = "M\:\\bldforge_AOMS_DEV";
print ("targetDir=$targetDir\n");
chdir($targetDir) or die "Cant chdir to $dir $!";
$current_dir = `cd`;
print "\nCurrent dir = $current_dir\n"
Output:
Z:\>ccperl test.pl
targetDir=M:\bldforge_AOMS_DEV
Current dir =