Lee Brooks
Lee Brooks

Reputation: 49

BAT file - Create empty unicode encoded file

I just want a BAT script that creates an empty text file in unicode format when ran. This is what I have so far

@echo off
echo.>"file.txt"
CMD /U /C Type file.txt >> unicode.txt

It works, but its messy as it creates two files. Any simpler way to do it?

Upvotes: 1

Views: 313

Answers (1)

npocmaka
npocmaka

Reputation: 57252

what about directly

CMD /U /C echo.> unicode.txt

?

Upvotes: 3

Related Questions