467,179 Members | 1,245 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

Output to exe directory

aas4mis
i'm using cwd() in windows and activestate.. after i compile with perl2exe and drag/drop an item on my exe the output always goes to the root of the c: drive. how can i get it to the directory where my exe resides?
any pointers appreciated.
Oct 21 '08 #1
  • viewed: 1635
Share:
2 Replies
numberwhun
Expert Mod 2GB
Have you read the directions for perl2exe? I know that its a binary, but maybe it has a configuration file that it reads to tell it where to put things. If not, you may have to ask on their forums. That, unfortunatley, isn't a Perl issue, but instead a program issue.

Regards,

Jeff
Oct 21 '08 #2
aas4mis
Have you read the directions for perl2exe? I know that its a binary, but maybe it has a configuration file that it reads to tell it where to put things. If not, you may have to ask on their forums. That, unfortunatley, isn't a Perl issue, but instead a program issue.

Regards,

Jeff
Thanks, I was on the wrong path thinking it was a perl issue. Just in case anybody else needs it, I found the following on the Perl2Exe homepage:


13. How to find the directory where the your application is located.
# Next line is for Perl2Exe V5.02 and older
$0 = $^X unless ($^X =~ m%(^|[/\\])(perl)|(perl.exe)$%i);
my ($program_dir) = $0 =~ m%^(.*)[/\\]%;
$program_dir ||= ".";
print "program_dir = $program_dir\n";
Oct 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Wescotte | last post: by
1 post views Thread by Bryan Glennon | last post: by
1 post views Thread by Paul Hemans | last post: by
3 posts views Thread by David V | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.