Possible Duplicate:
Can a Bash script tell what directory it's stored in?
In a Windows command script, one can determine the directory path of the currently executing script using %~dp0. For example:
@echo Running from %~dp0
What would be the equivalent in a BASH script?