since you are just writing it to a file you could shell the command "dir /od" and pipe the output to a file.
Forum Rules