Folder list generator batch file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nullifidian
    ¯\_(ツ)_/¯
    FFR Simfile Author
    • Sep 2007
    • 1837

    #1

    Folder list generator batch file

    Hey all,

    Since I know jack shit about batch files I thought I'd come here and ask for some help on something I'm trying to get to work.

    So I have a .bat file with a script to generate a .txt file with a list of folders of the directory the .bat file is run in. The script is:
    Code:
    dir /on /b /s /a:d >FolderList.txt
    This works well to generate a simple .txt file listing the folders of the directory it's run in, but my problem is when it tries to list folders with japanese symbols (among other things). Instead of listing the actual symbols, it replaces the symbols with questionmarks. For example, the folder "つくしレコーズ" is turned into "???????".
    Is there a way to make this script output a .txt file in unicode so that it retains the proper symbols?
  • Nullifidian
    ¯\_(ツ)_/¯
    FFR Simfile Author
    • Sep 2007
    • 1837

    #2
    Re: Folder list generator batch file

    Woo, fission just helped me out and provided an updated script that lists unicode.
    For anyone else interested:
    Code:
    chcp 65001
    dir /on /b /s /a: d >FolderList.txt
    type FolderList.txt
    edit: ninja matt

    Comment

    Working...