0

I'm trying to understand a problem I have encountered several times now (i have a workaround but it bugs the hell out of me).

Basic problem is that a given .exe file runs fine or not depending on how its started:

  • works if you do it graphically (click to folder, dubbelclick the .exe)

  • does not work if you do it from dos (cd to folder, execute the exe)

  • works from dos if you create a shortcut to the exe and execute the lnk file. When the program doesnt run it complains about not being able to find dll's.

  • works if you run it with the path to the exe from the runas dialog

I've seen this same problem before with different programs on windows-xp, but the one I currently ran into it with is 'smart response' downloaded from http://www.smarttech.com/us/Support/Browse+Support/Download+Admin+Software/Software/SMART+Response+Software/SMART+Response+Software/SMART+Response+2010+software+SP1+for+Windows

Is anyone able to shed a light on the root cause of this?

1 Answer 1

0

Does it work if you change into the applications directory on the command prompt before starting it?

The program probably tries to load some additional modules (DLLs) without specifying where to look for them. So they have to be somewhere windows can find them automatically: in the system PATH or in the current directory.

When you start by double clicking the exe (or starting a shortcut) the system usually sets the current directory to the folder the lives in...

1
  • No, changing the directory to the application folder, and then executing the .exe does not work. Commented May 2, 2011 at 9:52

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.