Re: Shellexecute question



"J French" <erewhon@xxxxxxxxxx> wrote in message
news:43a69195.867424475@xxxxxxxxxxxxxxxxxxxxxxx
> On Mon, 19 Dec 2005 09:16:03 -0000, "Mike Glazer"
> <glazer@xxxxxxxxxxxxxxxx> wrote:

>> The problem I have is suppose I send my program to someone else who
>> might have installed the external application to a non-standard
>> folder on their machine. What I need then is some code in my program
>> that automatically picks up the .exe file of the external application.

> If the user is a complete idiot then you will probably have to resort
> to brute force.

Poetry.


> For the future it would be wise for the App to leave its location
> somewhere obvious
> - that does not necessarily involve making a Windows file association.
>
> There are ways of finding the file locations of running Apps, under XP
> some of them just give the App names, but I'll bet others give the
> full path.

If the executable is on the path, only the filename is enough anywhere.

There is also HKLM/Software/Microsoft/Windows/CurrentVersion/App Paths.
This used to be in win.ini or system.ini, but they're no longer used
for that (or much of anything). Writing to the registry directly isn't
the right way to get it there in all likelihood, but I don't know any
other way.

Groetjes,
Maarten Wiltink


.



Relevant Pages

  • Re: Newbie Questions
    ... applications folder within their home folder for apps they do not wish ... > the switched-to app's body window to the foreground and sometimes not. ... > also not do it when none of my apps is the current app. ... > - How can I play a song with iTunes without bringing up an iTunes UI? ...
    (comp.sys.mac.system)
  • Re: Security Exception when deploying a VB.NET 2003 Solution
    ... It runs fine on any workstation. ... folder 2 levels up from the BIN folder where the application resides. ... Microsoft .NET security errors upon trying to start the Executable. ... I bet the workstaion is WinXP and your app is trying to write data( ...
    (microsoft.public.vsnet.general)
  • Re: Design Guidelines for Non-Power Users?
    ... Non-Power Users and Admins will not be able to install your app. ... You can get whatever this folder happens to be by ... If they don't have write permissions, ...
    (microsoft.public.vb.winapi)
  • Re: Cant save DB on close
    ... thus it can't close it in the normal manner and it then just shuts down. ... it is no longer listed in that folder. ... When I open the backup file it opens fine and it may go along fine for a few ... The original app was created in 2003, and I have not converted it to the 2007 format yet, as I often access it from another machine that does not yet have the 2007 installed. ...
    (microsoft.public.access.forms)
  • Re: ClamXAV and Exploit.PDF-2640 alert
    ... - Since the Toast 'installers' is just a folder, you should be able to right-click on the DiscCover.app and then open the 'Content' folder and find the PDF file in it's location and the just copy it to your own copy of DiscCover. ... I don't even use DiscCover so I should just delete the app. ... ClamXAV, Norton Antivirus and Avast! ...
    (comp.sys.mac.system)