I ran the script from the command prompt (thanks for that little tip!), I get this error message when it gets to the new stuff I added.

Script error : xpression.
If LEFT(@WKSTA,7) = "mtscapp"
The system cannot find the path specified.

This is the new code I added:
 Code:
If LEFT(@WKSTA,7) = "mtscapp"
	If InGroup ("AltLNDrive")=1
		$=WriteValue("HKEY_CURRENT_USER\Software\Lotus\Notes\8.0", "NotesIniPath", "G:\Lotus\Notes\Data\notes.ini", "Reg_SZ")
 		$=WriteValue("HKEY_CURRENT_USER\Software\Lotus\Notes\8.0", "NeedCommonFiles", "00000001", "Reg_DWord")
	Else
		$=WriteValue("HKEY_CURRENT_USER\Software\Lotus\Notes\8.0", "NotesIniPath", "U:\Lotus\Notes\Data\notes.ini", "Reg_SZ")
 		$=WriteValue("HKEY_CURRENT_USER\Software\Lotus\Notes\8.0", "NeedCommonFiles", "00000001", "Reg_DWord")
		
	EndIf
EndIf


Edited by Glenn Barnas (2010-09-10 07:25 PM)
Edit Reason: added code tags