Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th November 2007, 13:55   #1
giugio
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
giugio is offline   Reply With Quote
Old 27th November 2007, 16:51   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 28th November 2007, 08:35   #3
giugio
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
giugio is offline   Reply With Quote
Old 28th November 2007, 14:19   #4
giugio
Junior Member
 
Join Date: Nov 2007
Posts: 25
but there aren't function for string manipolation?
thanks
giugio is offline   Reply With Quote
Old 28th November 2007, 20:55   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is online now   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump