Would you mind posting the whole script?
is the filename file name.dfn ?

Example:

$Result = GetFileTime(@LDRIVE + "\Kix32.exe")
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!