Thread DOS-Fenster mit Perl öffnen (9 answers)
Opened by giordano at 2012-10-20 21:46

GwenDragon
 2012-10-22 11:45
#162718 #162718
User since
2005-01-17
14542 Artikel
Admin1
[Homepage]
user image
beispielcode:
Code (perl): (dl )
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");
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread DOS-Fenster mit Perl öffnen