|
|
|
|
#1 |
|
Junior Member
Join Date: Jun 2003
Posts: 3
|
Get machine IP (without the ";")
I searched the forums and already using the ip.dll already. But whenever I do this:
CallInstDll ip.dll get_ip Pop $0 I get a string saying "xxx.xxx.xxx.xxx;" with the semi colon at the end. I haven't found any function and just don't know how I can strip that semi colon at the end of the string. Anyone know how? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: May 2003
Posts: 19
|
You strip the semicolon using the StrCpy function:
; This strips the last letter off the end of $R0 StrCpy $R0 "192.168.0.2;" -1 ;$R0 now contains '192.168.0.2' |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|