I use iniwritestrings and inireadstrings alot in XP and the only time I have had an issue writing to an ini file is when I do not have modify permissions over the ini file or file directory. Do you have any other references to ini file locations in the script that may be making the script point to the wrong ini file? Maybe specify the ini file location before you do your iniwrtite string in the script. Regards Michael -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Martin Slack Sent: 20 June 2009 00:04 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Writing to an ini file in XP Is any element of the file path longer than 8 characters, or does any element contain spaces? Those can cause trouble with the Run function under XP. The workaround is to quote the string, or to express it in short name format. I don't know enough about the ini functions to say whether the same caveat applies. hth Martin ----- Original Message ----- From: "Brian Hartgen" <jaws@xxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Friday, June 19, 2009 9:59 PM Subject: [jawsscripts] Writing to an ini file in XP > Hi > > I am trying to write a string to an ini file with jaws using Windows XP. > > This function gets the user account of the person logged onto the host > computer and writes a string to an ini file stored in a folder there. > > Using Vista, this function works perfectly well and I get good results > every > time I use it. However, with XP, the ini file is not created the first > time > or the string written to it subsequently. Has anyone any idea why the > file > cannot be written to with XP please? > > The function is below. Incidentally, the MSG3 reference relates to the > end > of the file path which is > \\mctwit\\mctwit.ini > > If I copy the string to the clipboard, or have it spelled out, the path > retrieved is perfect. The file is just not written to with XP. Similarly > if > I use the run function, the file is not run if it exists. > > Function DisableSpeech () > let a = GetUserSettingsDirectory () > let a = StringReplaceSubstrings (a, MSG1, MSG2) > let iSegment = StringSegmentIndex (a, a, "Freedom", false) > let ISegment = ISegment - 3 > let a = SubString (a, 1, ISegment) > let a = a+MSG3 > IniWriteString ("Configuration", "EnhancedSpeech", "n", a, true) > > > > EndFunction > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > ---------------------------------------------------------------------------- ---- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09 06:53:00 __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts __________ Information from ESET NOD32 Antivirus, version of virus signature database 4173 (20090620) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4173 (20090620) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts