Old 11-22-2013, 04:48 PM   #1
Nullifidian
¯\_(ツ)_/¯
Retired StaffFFR Simfile AuthorFFR Veteran
 
Nullifidian's Avatar
 
Join Date: Sep 2007
Age: 34
Posts: 1,837
Default 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 is offline   Reply With Quote
Old 11-22-2013, 05:00 PM   #2
Nullifidian
¯\_(ツ)_/¯
Retired StaffFFR Simfile AuthorFFR Veteran
 
Nullifidian's Avatar
 
Join Date: Sep 2007
Age: 34
Posts: 1,837
Default 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
__________________
Nullifidian is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:30 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution