Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th June 2004, 12:20   #1
SupSuper
Junior Member
 
Join Date: Jun 2004
Posts: 12
Send a message via ICQ to SupSuper Send a message via Yahoo to SupSuper
Search function

i'm using this function to search for a file. however, i want it to return only the directory the file is in, not the whole address.
for example, if i'm searching for SomeFile.exe and the function finds it in C:\SomeDir, i want it to return "C:\SomeDir", not "C:\SomeDir\SomeFile.exe"
how do i edit it so it works like that?
SupSuper is offline   Reply With Quote
Old 28th June 2004, 05:47   #2
WarmAr
Junior Member
 
Join Date: Jun 2004
Location: Russia
Posts: 10
Simply use GetParent function.
WarmAr is offline   Reply With Quote
Old 28th June 2004, 09:54   #3
SupSuper
Junior Member
 
Join Date: Jun 2004
Posts: 12
Send a message via ICQ to SupSuper Send a message via Yahoo to SupSuper
thanks
SupSuper is offline   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