473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Output to exe directory

aas4mis
97
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
2 1729
numberwhun
3,509 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
97
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

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

Similar topics

11
by: Etienne Charland | last post by:
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5 class libraries. I didn't have any problems until recently. I added a new project containing reports. I am using...
1
by: fang | last post by:
Really confusing, I am using visual stdio C++ 6.0 I add a new project file into my current workspace. If I use the default output directory like default and release, everything works fine. But...
6
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
1
by: Bryan Glennon | last post by:
I have a solution with a web app and a web service. There is a virtual directory set up on my local server, //localhost/foo and it points to my development directory, c:\blah\blah\foo. When I...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
1
by: lqnt1981 | last post by:
Following is the code in python that opens all files under a directories and puts a comma in place of whitespace, I can see the output on the command line, but I am not sure what to do in order to...
1
by: Paul Hemans | last post by:
VS2005... I need to persist a database between builds, while in development. The problem is that the mdf file is being deleted whenever I start the application from VS. There is a setting on the...
3
by: David V | last post by:
I'm having trouble copying DLLs from a folder in my project to the project's output directory. I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder in my project. The DLLs VS...
3
by: rahulsengupta895 | last post by:
I get this error when i compile the file driver.cpp which is linked to video.cpp.. both programs are visual c++ codes and are attached below for reference . 1>TutorialExample : error PRJ0007 :...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.