try this:

requires EnumDir() from the UDF forum

code:
 
$serverfiles='\\NAS1\DFS\SOFTWARE\APPLICATIONS\TEMPLATES'
$destination='%appdata%\MICROSOFT\TEMPLATES'

$templates=enumdir('$serverfiles')
for each $file in $templates
if not exist('$destination\$file')
copy '$serverfiles\$file' '$destination'
endif
next



[ 06. March 2003, 18:04: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask