Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl 
    use warnings;
    use strict;
    my $test = "/C \"C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\
    +EXCEL.EXE\" C:\\test.xls";
    system ("cmd",$test);
    
  2. or download this
    my $testfile = "fromdos";
    my $test = "/C ${testfile} test.txt";
    system ("cmd", $test);
    
  3. or download this
    #! /usr/bin/perl 
    use warnings;
    ...
    my $testfile = "resultset.exe";
    my $test = "/C ${testfile} localhost root pwd";
    system ("cmd", $test);
    
  4. or download this
    my $test = "${testfile} localhost root pwd";
    system ($test);
    
  5. or download this
    my $test = "/C ${testfile} localhost root pwd";
    system ("C:\\WINDOWS\\SysWOW64\\cmd.exe", $test);