00 Votes

Batch Script is not working

Question by Guest | 2013-10-20 at 20:03

I do not know what I did wrong! I copied a Windows Batch Scripts from the Internet and tried out running those script on my computer. But the only thing that is happening is a black window shown for a short time but nothing else happens! None of the actions from the script is carried out.

I really do not know what can cause this error. I just opened Word, copied the script into it (without any changes) and changed the file extension to "bat". However, it does not work. Can anyone help me?

ReplyPositiveNegative
0Best Answer0 Votes

The error is that you have tried to create your batch script using Word. A Word document contains a lot of additional information (for example formatting), which then also appear in the file and can not be executed properly. Therefore, your script breaks off at this point and it is not coming to the actions you would like to be done.

What you need is a plain text file (TXT), which really only has the script as content inside. Just click with the right mouse button in any folder and select "New > Text Document" from the context menu. After that, they can open this new file using the editor and then you can change the ending from "txt" to "bat". With this, your script should work.
2013-10-22 at 23:33

ReplyPositive Negative
Reply

Related Topics

How to edit a Batch Script

Question | 1 Answer

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.