165
rated 0 times
[
171]
[
6]
/ answers: 1 / hits: 57870
/ 15 Years ago, mon, may 4, 2009, 12:00:00
How to get the directory of a file?
For example, I pass in a string
C:Program Filesnantbinnant.exe
I want a function that returns me
C:Program Filesnantbin
I would prefer a built in function that does the job, instead of having manually split the string and exclude the last one.
Edit: I am running on Windows
More From » javascript