Quote:

well, that's the weird thing.
he said he used 4.53 and that surely has no issue with undoubled $.

checked and 4.10 is the first version that does not require doubling the $ sign.
so, he is using really old version.




I just verified all servers and infact all are using kix32.exe 4.53.0

here is the working code.
Code:
$dest = "\\" + @WKSTA + "\d$$\imas\kix\scripts"
$source = "\\unpiox54pn\UHT_IMAS\Citrix\kix\Scripts\*.*"
If Not Exist($dest)
MD "\\" + @WKSTA + "\d$$\imas\kix\scripts"
EndIf
Shell '%COMSPEC% /c xcopy /E /Q /Y "'+$Source+'" "'+$Dest+'"'