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\snp108');
    
  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.