in reply to Re: More on Hiding DOS Windows
in thread Hiding the DOS window..

The "big commercial program" (BCP) masks how it handles it, so I don't know exactly what it is doing. BUT, if I set up the call as "Run Program" "\Perl\bin\wperl.exe" with parameters of "Perlscript.pl" "Parameters", it works perfectly. If instead, I make it "Run Program" "Perlscript.pl" "Parameters" the parameters are lost when file associations are set to call wperl for .pl extensions, whereas if the associations are set for perl.exe, the parameters are not lost.

It may be that I will have to change every call to the first format. That might be acceptable, but it will mean a lot of work going thru the massive data set and locating every place a Perl script has been inserted. I don't even mind the work, it's the mistakes I will make doing it, plus the fact that when reviewing the data for troubleshooting purposes BCP hides the actual parameters. Thus I cannot easily tell at any point what Perl script is being invoked if I make these changes. Annoying.

Looking at the registry, I don't really see any difference in how they are set up. To change the associations I just right-click on a .pl file and select open with... Choose program... and select Perl.exe or Wperl.exe. It seems pretty transparant, but I am tripping over this silly little anomaly.

Thanks for the help. Any additional suggestions are most welcome.

Nat

Replies are listed 'Best First'.
Re: More on Hiding DOS Windows
by jonadab (Parson) on Feb 20, 2005 at 18:26 UTC
    To change the associations I just right-click on a .pl file and select open with... Choose program... and select Perl.exe or Wperl.exe.

    I am totally guessing here, but this might be related to your problem. That method of setting up associations does not expose all the details to you. You might ought to look under View->Folder Options->File Types to see the details of how the file association is set up. It is quite possible that the association is not getting set up 100% correctly. If you've never worked with the File Types settings before, consult your local Windows guru.


    "In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68
      That got it. Thanks!

      Now my scripts are running invisibly with no DOS Boxes popping up and annoying the users.

      Thanks All,

      Nat

Re^3: More on Hiding DOS Windows
by Mr. Muskrat (Canon) on Feb 21, 2005 at 02:23 UTC

    It sounds like BCP is not passing the parameters correctly. Either fix the association of .pl files to use wperl or try "Run Program" "\Perl\bin\wperl.exe" "Perlscript.pl Parameters".