Help for this page

Select Code to Download


  1. or download this
    Win32::Process::Create( 
        $obj, 
    ...
        'cmd /c notepad somefile', 
       0, NORMAL_PRIORITY_CLASS, '.' 
    ) or die $^E;;
    
  2. or download this
    ## Run the command asyncronously with shell command resolution
    $pid = system 1, 'notepad'; 
    ...
    
    print 'command return status: ', $? >> 8;;
    command return status:  0