The recovery time for intracranial infections is determined by the specific situation, as follows: 1. In mild viral encephalitis, most patients can recover in less than two weeks. 2. In severe viral encephalitis, patients need more than four weeks to recover, and some patients cannot even recover. 3. The recovery time for patients is also relatively longer, generally taking more than four weeks. Therefore, patients with intracranial infections need to be given timely and effective anti-infective treatment to shorten their recovery time. For example, patients with viral encephalitis should be given acyclovir or ganciclovir antiviral therapy. Patients with septic encephalitis should be treated with quinolones or carbapenems, and patients with tuberculous encephalitis should be treated with isoniazid, rifampin, pyrazinamide, and other anti-tuberculosis drugs.