PozestStar
12-08-2011, 03:59 PM
Another week another question.
I was wondering how to get the short name of a file.
When I do:
string $fn = `file -q -sn`;
I get:
C:/Users/Pozest Star/Desktop/Bob.mb
I really just want Bob.mb (I want Bob, I need Bob :p)
If I have to tokenize, I will, but I thought there was an easier way to do this. Is there?
Thanks!
I was wondering how to get the short name of a file.
When I do:
string $fn = `file -q -sn`;
I get:
C:/Users/Pozest Star/Desktop/Bob.mb
I really just want Bob.mb (I want Bob, I need Bob :p)
If I have to tokenize, I will, but I thought there was an easier way to do this. Is there?
Thanks!
