I understand that. And several posts ago I put this up for discussion:
So if I understand you right, I need to do this:
:
if ingroup("ChicagoMM")
if exist("%userprofile%\desktop\ChicagoMicroMainXM.lnk")=0
$=WshShortCut("%userprofile%\desktop\ChicagoMicroMainXM.lnk","D:\Citrix MicroMain\Chicago\micromainxm.mde")
? @serror
else
? "Already Exists"
endif
if exist("%userprofile%\desktop\ChicagoxmREPORT.lnk")=0
$=WshShortCut("%userprofile%\desktop\ChicagoxmREPORT.lnk","D:\Citrix MicroMain\Chicago\xmreport.mde")
? @serror
else
? "Already Exists"
endif
if ingroup("Test_LansingMallMM")
if exist("%userprofile%\desktop\TestLansingMicroMainXM.lnk")=0
$=WshShortCut("%userprofile%\desktop\TestLansingMicroMainXM.lnk","D:\Citrix MicroMain\Test Lansing Mall\micromainxm.mde")
? @serror
else
? "Already Exists"
endif
if exist("%userprofile%\desktop\TestLansingxmREPORT.lnk")=0
$=WshShortCut("%userprofile%\desktop\TestLansingxmREPORT.lnk","D:\Citrix MicroMain\Test Lansing Mall\xmreport.mde")
? @serror
else
? "Already Exists"
endif
endif
But, as I was told, this isn't quite correct either... So I think at this point I am lost!
Should I remove "Already Exists" parts and just make it this way:
if ingroup("Test_LansingMallMM")
if exist("%userprofile%\desktop\TestLansingMicroMainXM.lnk")=0
$=WshShortCut("%userprofile%\desktop\TestLansingMicroMainXM.lnk","D:\Citrix MicroMain\Test Lansing Mall\micromainxm.mde")
endif
if exist("%userprofile%\desktop\TestLansingxmREPORT.lnk")=0
$=WshShortCut("%userprofile%\desktop\TestLansingxmREPORT.lnk","D:\Citrix MicroMain\Test Lansing Mall\xmreport.mde")
endif
endif