Wednesday, January 5, 2011

Funny But Common Mistake

Once Dr.Batcher's support team received a letter describing a problem with running batch file after re-installing Windows. The batch file was called 'shutdown.bat', and its purpose was to turn off computer in single mouse click. It contained the following line of code:
shutdown -s -t 0
Do you know what was wrong? Of course, the renaming file to 'shutdown1.bat' completely solved the problem. This mistake is quite silly and funny, but I consider it to be rather common, that's why I decided to pay your attention on it. When a batch file doesn't work at all, though its code seems to be correct, first of all check its name: probably, it's the cause of its wrong behavior.

No comments:

Post a Comment

Translate