Loading ...
Sorry, an error occurred while loading the content.

Help: On system function

Expand Messages
  • vishal_kharge
    Hello , I am getting the error Could not find Paint when I run the following script: system( start mspaint ); sleep 2; my @windows = FindWindowLike(0,
    Message 1 of 1 , May 3, 2005
    • 0 Attachment
      Hello ,

      I am getting the error "Could not find Paint" when I run the
      following script:


      system("start mspaint");

      sleep 2;
      my @windows = FindWindowLike(0, "Paint", "");
      die "Could not find Paint\n" if not @windows;


      I am using the ActivePerl for running the scripts.

      OS: Windows 2000
      I think the statement: system("start mspaint"); is not getting
      executed.

      What may be the reason and how should I solve this problem.

      Regards,
      Vishal Kharge
    Your message has been successfully submitted and would be delivered to recipients shortly.