<!---This example uses GetProfileString to set the 
	 timeout value in an initialization file. --->

<HTML>
<HEAD>
<TITLE>
GetProfileString Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>

<BODY  bgcolor="#FFFFD5">

<H3>GetProfileString Example</H3>

This example uses GetProfileString to get the value of timeout in an initialization file. Enter the full path of your initialization file, specify the timeout value, and submit the form.

<!---  This section of code checks to see if the form was submitted.
       If the form was submitted, this section gets the initialization
	   path and timeout value of the path and timeout value specified 
	   in the form                                                        --->
<CFIF Isdefined("Form.Submit")>

	<CFSET IniPath = #form.iniPath#>

	<CFSET Section = "boot loader">

	<CFSET timeout = GetProfileString(IniPath, "boot loader", "timeout")>
	
	<CFSET default= GetProfileString(IniPath, "boot loader", "default")>
	
	
	<H4>Boot Loader</H4>
	<!--- If you do not have an entry in an initialization file, nothing 
	      will be displayed --->
	
	<P>Timeout is set to: <CFOUTPUT>#timeout#</CFOUTPUT>.</P>
	<P>Default directory is: <CFOUTPUT>#default#</CFOUTPUT>.</P>
			
</CFIF>

<FORM ACTION="getprofilestring.cfm" METHOD="POST">
<HR size="2" color="#0000A0">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
    <td>Full Path of Init File</td>
    <td><input type="Text" name="IniPath" value="C:\myboot.ini"></td>
</tr>
<tr>
    <td><input type="Submit" name="Submit" value="Submit"></td>
    <td></td>
</tr>
</table>

</FORM>
<HR size="2" color="#0000A0">

</BODY>
</HTML> 