Yay, got it working!

Code on Script 'A':

If not exist("c:\temp\variables.ini")
WRITEPROFILESTRING("c:\temp\var2.ini", "vars", "nasip", "10.128.32.70")
ENDIF

Code on Scipt 'B'

$inipath = 'c:\temp\variables.ini'
IF exist($inipath)
$nasip = ReadProfileString($inipath, "vars", "nasip")
ELSE
?"INI file at path: " $inipath " does not exist."
ENDIF

It looks like WRITEPROFILESTRING creates the INI if it dosnt exist by default, i might use this method as it cuts down on 2 lines.

Thank you both muchly for the help!

Luke


Edited by lukeod (2008-02-19 07:29 AM)