Possible Duplicate:
How to get folder path from file path with CMD
How can I get path to my cmd file when it runs as administrator?
Problem is:
When I run my cmd file file as admin the windows sets the current directory as c:/windows/system32, not d:/my_script for example, which is what I want. And my cmd script can't access files referenced by a short path.