cmd /K "e:&&cd \x\y\z&&pdflatex x.tex"
system('cmd.exe', '/K', q("e:&&cd \x\y\z&&pdflatex x.tex"));
1
2
3
4
5
6
@echo off
e:
cd /x/y/z
pdflatex x.tex
pause
REM oder: pause > NUL (unterdrückt Tastendruckhinweis)
1 2 3 4 5 6 7 8 9 10 11 12 13
#!perl my $dos_commands = <<TXT; X: cd /tmp notepad blah.txt TXT $dos_commands = join '&&', split/\n/, $dos_commands; warn "Executing: cmd.exe /K $dos_commands"; system ("cmd.exe /K $dos_commands");