function copy_files($personal,$desktop,$start,$server,$program)
DIM $comp_return,$icons_path,$file
$icons_path='icons$\'
$file=$server + $icons_path + $program
if not exist ($personal)
md $personal ;make sure personal location exists
endif
if not exist ($start)
md $start ;make sure start location exists
endif
$comp_return=CompareFileTimes('$server+$icons_path+$program','$personal+program$')
if $comp_return <> 0
;? "need in personal drive"
COPY "$file" "$personal" /c
error_check(@ERROR,@SERROR,"couldnt copy $file to $personal")
endif
$comp_return=CompareFileTimes('$server+$icons_path+$program','$desktop+program$')
if $comp_return <> 0
;? "need in desktop"
COPY "$file" "$desktop" /c
error_check(@ERROR,@SERROR,"couldnt copy $file to $desktop")
endif
$comp_return=CompareFileTimes('$server+$icons_path+$program','$start+program$')
if $comp_return <> 0
;? "need in startmenu"
COPY "$file" "$start" /c
error_check(@ERROR,@SERROR,"couldnt copy $file to $start")
endif
endfunction