Ed,
>The API call that Larry gave is not dependent on the WSH components.
Yes, you are right this was a mistake I did seeing quickly the msg and WSH, without giving a real look. Ah! Works great thanks Larry.
>
>If you want to find out if the necessary WSH component is installed, check the registry for the key HKEY_CLASSES_ROOT\Scripting.FileSystemObject is present ; if it's there, then the COM object can be created. It is possible that the Scripting.FileSystemObject is present even if the full WSH is not installed; some VB apps use it.
Good, thanks for the tip.