 	}
 	else
 	{
-	; get workdir
+	; get workdir: This blanks  all if not lnk file so expect return of "*"
 	FileGetShortcut, % strTemp, , strRetVal
 		if (strRetVal)
+		{
 		strRetVal .= "\"
+		msgbox % strTemp "    " strRetVal
+		}
 		else ; lnk might be a directory shortcut
 		{
 		FileGetShortcut, % strTemp, strRetVal

	if (temp = "NS" || temp = "FAILED" || temp = "TERM" || temp = "ENDED" || !temp)
	{

		strRetVal := ChkExistingProcess(PrgLnkInf, presetNoTest, batchPrgStatus, currBatchNo, PrgBatchIni%btchPrgPresetSel%, PrgListIndex, PrgChoicePaths)

		if (strRetVal)
		{

Return retVal
}

PidMaster(PrgNo, currBatchNo, btchPrgPresetSel, PrgBatchInibtchPrgPresetSel, ByRef PrgListPIDbtchPrgPresetSel, ByRef PrgPIDMast, ToPid := 0)
{
	temp := 0
	if (ToPid)
