Dear,

Welcome to the board.

A small piece of code is:

code:

$source="x:\fonts\*.*"
$destination=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Fonts")
IF (Substr($destination,len($destination),1) <> "\")
$destination=$destination+"\."
ENDIF
COPY $source $destination /H


we are using the registry key for the right location.

See also our reaction on topic for synchronizing fonts directories:
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002279
and topic
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=001024
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA