Getscriptfile() Without The File?

Hello everyone,

Basically I just need to get the directory without the name at end of file.

Right now, the getScriptFile(); gives me:


However, I just want:.


When I put a ‘../’, it shows up as this:


How come it doesn’t follow the normal conditions where it would go back a directory?

Dear Friend

It can be done in the following way.



Ahh great I appreciate it thank youu!