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