You don't need to create an ini file before you can use it - the WriteProfileString() will create the file if it is not present.

C:\Temp does not exist unless you created it, especially on newer environments. It might be safer to do
 Code:
WRITEPROFILESTRING("%TEMP%\var2.ini", "vars", "nasip", "10.128.32.70")

In script A - don't even bother checking if it exists..
 Code:
$nasip = ReadProfileString($inipath, "vars", "nasip")
If @ERROR or Not $NasIp
  'Error: '
  If @ERROR
    @SERROR ?
    Exit @ERROR
  Else
   'Data is not valid' ?
   Exit 87
  EndIf
EndIf

Also - minor - the "?" is a substitute for @CRLF, which generally comes at the END of an output line, and not a shortcut for a PRINT statement, as in early BASIC languages. This will come to bite you when you start creating more complex output structures.

Why are you using an IP address? Hard-coding IPs is not a good idea!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D