Windows 7 Path Environment variable

Ahmedn1

New Member
hello
I have developed an application using C# and I want it to run from start > run when I write the name like when I write 'calc' to run the calculator

I set the path variable to add the application folder
when I write the name it gives me 'Application Name stopped working' error
I thought that there is something wrong with the app but when I navigated through start>>run to the file as 'C:\program files\application\app.exe' it worked perfectly
but when I write just 'app.exe' it gives me the previous error

any ideas?
 
I tried it with one of my apps and it works fine. Are you adding % to the variable in the run command?
 
when I use this it deosn't recognize the problem

I tracked the error report
and found System.dllnotfoundexception

and the dll in the report is in the application folder and it works because the program runs very normal when I run it from a shortcut
but from commandline it doesn't recognize this dll

WHY?
 
Is your app a web service? If so, you will need to add to your code for it to be able find the bin folder of your app in the Win7 default web server folder . If it is, I will help you with that.
 
It's probably looking for the .dll to be in C:\Windows\System32

As a temporary test, place a copy of the .dll there, then give a try and see how it goes.

If it works, then you know the exact reason and can take it from there.
 
Please post the exact path of the executable and the exact command you type into the run command.
Also, please post the exact names you gave in the environment variables: Variable name & Variable value.
 
it worked guys
like a charm
I just moved some files from folder inside my app folder and brought them outside
:)
 
Back
Top