Re: [OT] Using DIR (CMD) with redirection to a file
- Posted by znorq2 Oct 15, 2009
- 2224 views
krg said...
You could try this. Before running the dir command, create another instance of the command shell like this:
cmd /u
This instructs cmd to use Unicode when redirecting to a pipe or file.
Not sure if this will solve your problem, but it is worth a try.
krg, that worked! Used the following syntax to achieve the goal;
@cmd /u /c dir *.* /b >myfiles.txt
Extend my gratitude to all who's been kind enough trying to help me out..
PS! Apologies for not responding earlier, have very busy schedule..
Regards, Kenneth / ZNorQ