Operating system protection method

The invention discloses a method for protecting software, which is applied to a server provided with a memory cell which stores the operating system of the server. The invention first starts the operating system to carry out the action of opening the computer, detects hidden files recorded in the memory cell and captures the content of the hidden files, then reads the sequence code of the server and judges whether the content of the hidden files are same with the sequence code. If the answer is yes, the action of opening the computer is continued and if the answer is no, the action of openingthe computer is stopped.