Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 6, 2019 4:44 PM
Today I started a bat file and it's not working, so I check it one by one and found out that when I type any shutdown command it'll always reply as: e' is not recognized as an internal or external command, operable program or batch file. Don't know what's going on, any suggestion? (the category maybe incorrect, it's my first time here.) Thanks.
All replies (2)
Monday, May 6, 2019 5:02 PM ✅Answered
In the command prompt type out the bat file like this.
If you see any strange characters then the encoding of the file is incorrect. Edit it with notepad and set the encoding to ANSI in the save as dialog.
Tuesday, May 7, 2019 2:12 AM
Hi,
Maybe the environment variables aren't set the right way.
Please refer to the link below:
https://www.thewindowsclub.com/is-not-recognized-as-an-internal-or-external-command
https://superuser.com/questions/670850/commands-not-working-in-windows-7-32-bit-command-prompt
Best regards,
Travis
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]