 
 				}
 				else
-				temp .= "Not Active" . "|"		
+				temp .= "Not Active" . "|"
 			}
 			}
 			}

		if (btchPrgPresetSel = PrgBatchIniStartup)
		GuiControl, PrgLnch:, DefPreset, 1
		else
		GuiControl, PrgLnch:, DefPreset, 0	

		strRetVal := PopBtchListBox(PrgChoiceNames, PrgNo, PrgMonToRn, PrgBdyBtchTog, PrgListIndex, batchPrgNo)
		sleep 100

	IniWrite, %A_Space%, %PrgLnchIni%, General, PrgLaunchAfterDL

	; %PrgLnchIni% as long as the current directory isn't changed while this loads

	spr := "0,0,0,1"
	IniWrite, %spr%, %PrgLnchIni%, General, ResMode
	IniWrite, %A_Space%, %PrgLnchIni%, General, UseReg
	IniWrite, %A_Space%, %PrgLnchIni%, General, NavShortcut


	IniWrite, % (defPrgStrng)? defPrgStrng: None, %PrgLnchIni%, Prgs, StartupPrgName


	IniWrite, %A_Space%, %PrgLnchIni%, Prgs, PrgMon

	IniWrite, % (PrgBatchIniStartup)? PrgBatchIniStartup: A_Space, %PrgLnchIni%, Prgs, PrgBatchIniStartup
	IniWrite, % (PrgTermExit)? PrgTermExit: A_Space, %PrgLnchIni%, Prgs, PrgTermExit
	IniWrite, % (PrgIntervalLnch)? PrgIntervalLnch: A_Space, %PrgLnchIni%, Prgs, PrgInterval
	IniWrite, %A_Space%, %PrgLnchIni%, Prgs, PresetNames


		Loop , %maxBatchPrgs%
		{
			spr := join(PrgBatchIni%A_Index%)
			spr := (spr)? spr: %A_Space%
			IniWrite, %spr% , %PrgLnchIni%, Prgs, PrgBatchIni%A_Index%
		}

		loop % PrgNo
		{
		;PrgChoiceNames.push([0])

		if !reWriteini
		strPrgChoice .= "Prg" . A_Index . "|"

		IniWrite, % (PrgChoiceNames[A_Index])? PrgChoiceNames[A_Index]: A_Space, %PrgLnchIni%, Prg%A_Index%, PrgName
		;for  each PrgChoicePaths[%A_Index%]
		if reWriteini
		{
		fTemp := PrgChoicePaths[A_Index]
		if fTemp
		{
			if InStr(fTemp, ".lnk", False, StrLen(fTemp) - 4)
				{
				;Append resolved path
				strRetVal := GetPrgLnkVal(fTemp)
				if !(InStr(strRetVal, "*") || InStr(strRetVal, "|"))
				PrgChoicePaths[A_Index] .= IniFileShortctSep . strRetVal
				}
		}
		}
		IniWrite, % (PrgChoicePaths[A_Index])? PrgChoicePaths[A_Index]: A_Space, %PrgLnchIni%, Prg%A_Index%, PrgPath

		IniWrite, % (PrgCmdLine[A_Index])? PrgCmdLine[A_Index]: A_Space, %PrgLnchIni%, Prg%A_Index%, PrgCmdLine
		IniWrite, %A_Space%, %PrgLnchIni%, Prg%A_Index%, PrgRes
		IniWrite, % (PrgUrl[A_Index])? PrgUrl[A_Index]: A_Space, %PrgLnchIni%, Prg%A_Index%, PrgUrl
		IniWrite, % (PrgVer[A_Index])? PrgVer[A_Index]: A_Space, %PrgLnchIni%, Prg%A_Index%, PrgVer
		if reWriteini
		{
		; This is the ver 1.X order
		PrgLnchHide[A_Index]:= PrgMonToRn[A_Index]
		PrgMonToRn[A_Index] := PrgChgResonSwitch[A_Index]
		PrgChgResonSwitch[A_Index] := PrgBordless[A_Index]
		PrgBordless[A_Index] := PrgRnMinMax[A_Index]
		PrgRnMinMax[A_Index] := -1

		spr := PrgMonToRn[A_Index] . "," . PrgChgResonSwitch[A_Index] . ",-1," . PrgRnPriority[A_Index] . "," . PrgBordless[A_Index] . "," . PrgLnchHide[A_Index] . ",0"

		IniWrite, % spr, %PrgLnchIni%, Prg%A_Index%, PrgMisc
		}
		else
		IniWrite, %A_Space%, %PrgLnchIni%, Prg%A_Index%, PrgMisc
		}
	reWriteIni := 0
	}
	else
	{
