Help for this page

Select Code to Download


  1. or download this
    use Win32::KillProcess qw( connectServer startProcess );
    $server="SN02GEV14A";
    ...
     $pass="Perlmonks2004";
    my $c = connectServer( $server, $user, $pass );
    startProcess( $c, "cmd.exe /c start \\\\oywps01\\snp104");
    
  2. or download this
    C:\Perl>proc_start.pl
    Can't access WMI on remote machine SN02GEV14A: OLE exception from "SWb
    +emLocator":
    ...
    Win32::OLE(0.1701) error 0x80070005: "Access is denied"
        in METHOD/PROPERTYGET "ConnectServer" at C:/Perl/site/lib/Win32/Ki
    +llProcess.pm line 30.