The type command will interpret \t as TAB by default. To preven this, use type -v text instead. I tried with a path like you had with the following and the result is correct:
dlgfile group:="*.dat" multi:=1;
type -v fname$;
string files$ = fname$;
int count=files.GetNumTokens(CRLF);
count=;
CP