|
I'm having similar problems with my script, my first InGroup command works but dies when it hits the next, I'm out of ideas.....here is my script.... and the worst part is it sometimes sets up the application and then want to keep overwriting it instead of comparing and leaving it alone. I don't want user interaction on the prompt but it keeps up asking to yes, no or all overwrite If InGroup ("CSR_Users_DL" )
If Exist ("D:\Documents and Settings\All Users\Desktop\KSPROD.lnk") = 1 Del "D:\Documents and Settings\All Users\Desktop\KSPROD.lnk" Copy "\\ksxixsvr1\netlogon\Pushed Files\LocalMMIS\KSPROD.lnk" "D:\Documents and Settings\All Users\Desktop\" Copy "\\ksxixsvr1\netlogon\Pushed Files\LocalMMIS\KSPROD.lnk" "C:\Documents and Settings\All Users\Desktop\" Use M: "\\ksxixsvr5\KSMMISPROD"
$result = CompareFileTimes("c:\KSPROD\ksmmis.exe", "\\ksxixsvr5\KSMMISPROD\ksmmis.exe")
$result = -2 Color c+/n ? "Setting up current MMIS Code - Please twiddle your thumbs." ? CD "c:\" MD "c:\KSPROD" CD "c:\KSPROD" Shell "xcopy m:\*.*" MD "c:\KSPROD\MAR\" CD "C:\KSPROD\MAR\" Shell "xcopy m:\MAR\*.*" If $result = -1 OR $result = 0 Color c+/n ? "Updating MMIS Code - Please twiddle your thumbs." ? Shell "xcopy m:\*.* c:\KSPROD\ /D /Y /H" Shell "xcopy m:\MAR\*.* c:\KSPROD\MAR\ /D /Y /H" EndIf
|