giugio
27th November 2007 14:55 UTC
get file from a path
hy.
I wold to extract the string filename from the path of a dirrequest dialog .
I see the string Manipulation funtion but i'm not find the indexof or find(c++ or c# function that return -1 if the occurrence string not found and a int if the string is found)
how i manipulate the string occurrence?
thanks
Afrow UK
27th November 2007 17:51 UTC
Have a look at the WordFunc.nsh header.
You can use the FileOpen, FileRead and FileClose functions to read from a plain text file.
Stu
giugio
28th November 2007 09:35 UTC
no,sorry I have the string path and i would to select the file name string without the path.
The string , not the file.
thanks
giugio
28th November 2007 15:19 UTC
but there aren't function for string manipolation?
thanks
kichik
28th November 2007 21:55 UTC
As Afrow said, there are functions in WordFunc.nsh such as WordReplace. But what you need is GetFileName.