Skip to content
⌘ NSIS Forum Archive

Left string

3 posts

Freezerman350#

Left string

Hello "group"

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

can you help me ?

Thx !
Joel#
See StrCpy extra parameters:

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