user3438908
user3438908

Reputation: 69

unable to run bat file commands in cmd

When I try to run bat files I receive this message

enter image description here

My bat file code is:

echo %0 pause

only my system is windows 8.1 64bit

thank you in advance

Upvotes: 1

Views: 543

Answers (1)

Jeff Zeitlin
Jeff Zeitlin

Reputation: 10809

A little digging makes this appear that you've saved your file in Unicode format, and the three characters at the beginning are the UTF-8 encoding of the Byte Order Mark. Open your batch file in Notepad, make sure those characters are not visible, then save it using SAVE AS..., and make sure that the encoding pulldown is set to ANSI.

Upvotes: 1

Related Questions