in reply to Re^8: Convertion Perl Script to Exe with PAR::Packer pp
in thread Convertion Perl Script to Exe with PAR::Packer pp

great ideia, i solved it using this solution but using $ENV{HOMEDRIVE} Ty very much!!!
  • Comment on Re^9: Convertion Perl Script to Exe with PAR::Packer pp

Replies are listed 'Best First'.
Re^10: Convertion Perl Script to Exe with PAR::Packer pp
by RonW (Parson) on Jul 25, 2014 at 20:02 UTC

    So, just putting the xlsx file in C:\?

    (On Win7, HOMEDRIVE is almost always C:\. Sometimes D:\, E:\ or other, but always just a drive letter.)

    (Maybe I'm remembering wrong, but I recall WinXP, Win2000 and Win98 using various different env vars, but never HOME)

      Yes, i created a folder containing the file and in the script i got it with:
      "$ENV{HOMEDRIVE}" . "\\JOFA\\jofalista.xlsx"
      Much more easier than i think. Thanks again!