phil, can't see why you don't get errors.
the syntax is wrong so it should give one.
anyway, you can't copy directories with kix-copy.
here is what it does:
quote:
COPY
Action
Copies one or more files. Syntax
COPY "source" "destination" [/h]
Remarks
Wildcards are supported.
If a file already exists at the destination, it is overwritten without warning.
The /h option can be used to include files with the hidden or system attribute set in the copy.
so to copy all files in the directory try this one:
code:
IF EXIST("c:\windows")
copy "z:\lmhost\*.*" "c:\windows\" /h
else
copy "z:\lmhost\*.*" "c:\winnt\system32\drivers\etc\" /h
ENDIF
kdyer pointed out good issue.
if you are checking c:\windows it may not be allways right.
nt-machines can also have c:\windows as root directory.
%windir% is the place where windows resides.
to check different os inwin is good one.
so you might also want to try this one:
code:
IF "@inwin"="2"
copy "z:\lmhost\*.*" "%windir%" /h
else
copy "z:\lmhost\*.*" "%windir%\system32\drivers\etc\" /h
ENDIF
cheers,