running a command without having to provide the path

ok,

i am aware of adding the directory where the files are located into the .profile file but the problem is, its not working for me.

can someone please spell out how to properly edit these configuration files so i can run a command anywhere on the system without having to be in the directory the command is located in?

please help

thanks

export path of the directory in your .profile

like export PATH=$PATH:You path which you want to execute
e.g. export PATH=$PATH:\var\home\etc

now you could execute any script which is there in \var\home\etc from any where.

--Manish

In case there's some confusion, you probably want forward slashes like:
export PATH=$PATH:/var/home/etc

Another note, /var/home/etc seems like a strange place to put executables. /etc is where config files reside.
Kent