Michel,

I think the problem is in the share name:
code:
 $AFDELING = "\\AMSFIL0001\CPY Directie" 

In the use statement, kix executes:
USE H: \\AMSFIL0001\CPY Directie

The connected share will be the CPY share....

Try using the following syntax:
code:
 $AFDELING = '"\\AMSFIL0001\CPY Directie"' 

Good luck (en veel plezier)
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...