Hey all, kind of an easy question. I have a perl script which I've compiled into a .exe. When I execute it, it naturally sets its directory to the one the .exe is found in. This is fine. However, I want to know exactly what this directory is. For example, my script (.exe) file is under:
C:/Bob/Hope/myScript.exe
I execute it, and can open files in its present directory by doing things like
open(FILE, "< someFile.txt");
But, I want to know the directory structure leading up to the current directory (ie, in this case, C:/Bob/Hope/).
Anyone know?
-Nick
C:/Bob/Hope/myScript.exe
I execute it, and can open files in its present directory by doing things like
open(FILE, "< someFile.txt");
But, I want to know the directory structure leading up to the current directory (ie, in this case, C:/Bob/Hope/).
Anyone know?
-Nick