If I understand your requirement clearly, I feel you dont need to use the variable to do this. All you need is below script.
sub DoDir (Root)
for each Ext in 'qvw', 'qva', 'qvo', 'qvs', 'qvc', 'qvd'
for each File in filelist (Root&'\*.' &Ext)
'$(File)' as Name,
FileSize( '$(File)' ) as Size,
FileTime( '$(File)' ) as FileTime
for each Dir in dirlist (Root&'\*' )
call DoDir (Dir)
call DoDir ('C:')