Hi Wes,

Thanks for getting back to me..!

I'm trying to determine if the issue is the way I am using PAR/pp, or if the
script I have created is simply not able to find the text files or the CLI
executible the way I am referencing them.

I've even tried putting them in a a folder call script; i.e.:
script\cli.exe, script\txt, script\txt\file.txt:
.
..
file.pl (PERL Script)
script
   |
   cli.exe (DOS CLI executible)
script    |
   txt (folder)
      |
      file1.txt (text file)
      file2.txt (text file)
      file3.txt (text file)
      file4.txt (text file)

This works, in that the resulting archive has them in the same relative path
as the script.pl (within the script folder), however, the script is not
finding the cli.exe, and is not able to find and parse the text files in the
script\txt folder (which may be a path issue in then script).

I'm still very new to using PAR/pp, so I'm not familliar with it's internal
capabilites.. is PAR_TEMP built in to PAR or pp.. can I use it in a script
that doesn't use PAR..?

Many thanks for all of your help and support on this..!

Thomas
On Wed, Feb 25, 2009 at 6:37 AM, Wes Hardaker <[email protected]> wrote:

> >>>>> On Tue, 24 Feb 2009 16:49:46 -0800, Thomas George <
> [email protected]> said:
>
> TG> Still striking out on this... I thought I have a working solution,
> however
> TG> this dosn't work the way I thought it would.
>
> I do this for my app by putting the new files I need into a subdirectory
> where I run pp...  And then putting each thing in a list file which I
> pass to pp through the -A flag.
>
> The trick, though, is you need to look for the files in the right
> location.  The easiest way to do this is by checking the PAR_TEMP
> environment variable, which lets you know you're running within PAR:
>
>    if ($ENV{'PAR_TEMP'}) {
>        my $searchdirectory = "$ENV{'PAR_TEMP'}/foo/"
>    }
>
> Then do the same thing with the .exe file so that it can be found (I
> haven't tried this on windows, so I'm only guessing that it works.  I'll
> try it soon, but there must be some variable to set if PATH doesn't work).
>
>    if ($ENV{'PAR_TEMP'}) {
>        $ENV{'PATH'} .= ":$ENV{'PAR_TEMP'}/exesubdir/";
>    }
>
> --
> "In the bathtub of history the truth is harder to hold than the soap,
>  and much more difficult to find."  -- Terry Pratchett
>

Reply via email to