create folder with áéíóú

Viewed 52

I want to make a batch program that creates a folder named fábulas(fables in portuguese). but when I try with the following command

md "DeskTop\fábulas"

The name of the created folder is fábulas.

And when I do the same command in cmd the folder name is fábulas not f├íbulas.

How can I create a batch program that makes the folder name be fábulas instead of f├íbulas

1 Answers

You should change the code page with CHCP 65001; So you can give a try with this batch :


@echo off
chcp 65001>nul
md "%userprofile%\DeskTop\fábulas">nul 2>&1
md "%userprofile%\DeskTop\áéíóú">nul 2>&1
Explorer "%userprofile%\DeskTop\fábulas"
Explorer "%userprofile%\DeskTop\áéíóú"
Related