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

529Re: [perlguitest] Re: Calling executables with spaces in Perl

Expand Messages
  • Gabor Szabo
    Jul 18, 2004
      On Wed, 7 Jul 2004, Eyeless Devil wrote:

      > When I tried this, a 2nd dialogue came up without executing the app.
      > After looking at the help for START, I noticed that the first param
      > is a title string. When I put two escaped quotes or basically an
      > empty string placeholder, it finally executed:
      > my (@args) = ("start", "\"\"", "\"C:\\Documents and
      > Settings\\setup.exe\"",);
      > system(@args)==0 or die "@args failed: $?";

      for more readability you might want to use qq() or q() for this

      my @args = ("start", q(""), q("C:\Documents and Settings\setup.exe"));

      (beware, I have not checked this now)

    • Show all 6 messages in this topic