my $cmd = "cd C:\\ABC\\"; $cmd .= "pdftotext -layout R1.pdf"; system($cmd);