 
 GoConfig:
 presetNoTest := 0
-PidMaster(PrgNo, currBatchNo, btchPrgPresetSel, PrgBatchIni%btchPrgPresetSel%, PrgListPID%btchPrgPresetSel%, ProgPIDMast, 1)
+PidMaster(PrgNo, currBatchNo, btchPrgPresetSel, PrgBatchIni%btchPrgPresetSel%, PrgListPID%btchPrgPresetSel%, PrgPIDMast, 1)
 IfWinExist, % "ahk_id" PrgPropsHwnd
 {
 Gui, PrgProperties: Destroy

IsaPrgLnk := 0
prgPath := (PrgPth)? PrgPth: PrgChoicePaths[selPrgChoice]

if (!InStr(PrgLnkInf[selPrgChoice], "*"))
{
	if (InStr(PrgLnkInf[selPrgChoice], "\", false, StrLen(PrgLnkInf[selPrgChoice])))
	{
	PrgPath := Substr(PrgPath, 1, InStr(PrgPath, IniFileShortctSep,, 0) -1)
	IsaPrgLnk := 1
	}
	else
	PrgPath := PrgLnkInf[selPrgChoice]
}


;msgbox % PrgLnkInf[selPrgChoice] " prgPath " prgPath
if (IsaPrgLnk)
Return % prgPath
else
{
	if (InStr(prgPath, IniFileShortctSep,, 0))
	Return % PrgLnkInf[selPrgChoice]
	else
	Return % prgPath
}
}

PrgURLEnable(ByRef PrgUrlTest, ByRef UrlPrgIsCompressed, selPrgChoice, PrgChoicePaths, ByRef selPrgChoiceTimer, PrgLnkInf, PrgUrl, ByRef PrgVer, ByRef PrgVerNew, UpdturlHwnd, IniFileShortctSep, UrlDisableGui := 0)


	loop % PrgNo
		{ 
		temp := PrgPIDMast[A_Index]
		if (temp)
		WinClose, ahk_pid%temp%
		sleep, 200
