Dear,Our version would be:
code:
IF (Exist("c:\windows\nul") = 1) OR (Exist("c:\windows") = 1)
COPY "\\server\netlogon\lmhost" "c:\windows\." /H
IF (@error <> 0)
? "Warning KIX: error during copy file. error @error (@serror)."
ENDIF
ENDIF
IF (Exist("c:\winnt\system32\drivers\etc\nul") = 1) OR (Exist("c:\winnt\system32\drivers\etc") = 1)
COPY "\\server\netlogon\lmhost" "c:\winnt\system32\drivers\etc\." /H
IF (@error <> 0)
? "Warning KIX: error during copy file. error @error (@serror)."
ENDIF
ENDIF
We doesn't use the @inwin macro. Also it is possible to use the environment
variable %windir%. The version will be something like:
code:
$windir=ExpandEnvironmentVars("%windir%)
IF (Copy($windir,Len($windir),1) = "\") ; - remove \-character -
$windir=Copy($windir,1,Length($windir)-1)
ENDIF
;
IF (Exist("$windir\nul") = 1) OR (Exist("$windir") = 1)
COPY "\\server\netlogon\lmhost" "$windir\." /H
IF (@error <> 0)
? "Warning KIX: error during copy file. error @error (@serror)."
ENDIF
ENDIF
IF (Exist("$windir\system32\drivers\etc\nul") = 1) OR (Exist("$windir\system32\drivers\etc") = 1)
COPY "\\server\netlogon\lmhost" "$windir\system32\drivers\etc\." /H
IF (@error <> 0)
? "Warning KIX: error during copy file. error @error (@serror)."
ENDIF
ENDIF
greetings.