?
Solved

Getting location of .EXE file being run

Posted on 2003-03-09
4
Medium Priority
?
172 Views
Last Modified: 2010-05-01
Is there any way to find the (folder) location of the .exe that is running?
For example, VBA.CURDIR returns the drive letter - but not the full path of the executable, which is what I want.

Thanks,
Joe
0
Comment
Question by:Jodacoda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
hj2k3 earned 80 total points
ID: 8100564
App.Path seems to be what you're looking for. hope it works!
0
 
LVL 2

Expert Comment

by:Chuckie_Ice
ID: 8100910
Are you saying the Path of any exe? or the one you are currently running? If its the one u are currently running, use App.Path
0
 
LVL 2

Expert Comment

by:Chuckie_Ice
ID: 8100913
sorry hj2k3, i didnt see your post so i said the same thing
0
 
LVL 1

Expert Comment

by:hj2k3
ID: 8102315
Chuckie_Ice: no problem, i've done that before too :-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question