How can I get the current path of an script.
I'm in a Windows environment and %ENV doesn't have a key for that purpose (or I can't find it).
Mi specific problem is that I want to dynamically include a folder with a path relative to my script.
You can use the same syntax you would to access the folder when you're on the command line. the following will all work:
"../../file.txt"
"relative/folder/file.txt"
"/absolute/folder/path/file.txt"
This is the syntax in *nix, but it sould work exactly the same in windows. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.