|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 25
|
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
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 Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2007
Posts: 25
|
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Nov 2007
Posts: 25
|
but there aren't function for string manipolation?
thanks |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
As Afrow said, there are functions in WordFunc.nsh such as WordReplace. But what you need is GetFileName.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|