Error 482

Not allowed with a directory
 
ASSIGN cannot be used with a directory.