Old 20th July 2004, 13:23   #1
Freezerman350
Member
 
Join Date: Jul 2004
Location: Canada, Quebec
Posts: 69
Left string

Hello "group"

I have a string and I only want the first letter (cd rom drive)

can you help me ?

Thx !
Freezerman350 is offline   Reply With Quote
Old 20th July 2004, 13:50   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
See StrCpy extra parameters:
code:

Section "-default"
DetailPrint "If this is your current directory:"
DetailPrint $EXEDIR
DetailPrint "Then, this is its drive letter:"
StrCpy $0 $EXEDIR 3 0
#3 is how many chars will be copy, and 0 the begining of the string
DetailPrint $0
SectionEnd



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 20th July 2004, 14:11   #3
Freezerman350
Member
 
Join Date: Jul 2004
Location: Canada, Quebec
Posts: 69
Thx !
Freezerman350 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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