Traditional Culture Encyclopedia - Weather forecast - As soon as the weather is turned on, the win7 gadget shows that the server cannot connect.

As soon as the weather is turned on, the win7 gadget shows that the server cannot connect.

1. First, open Notepad to copy the following contents, save it as selecting all files, and then name it xxx.reg (* the following is the reference content). These words are not copied.

The following is a quote:

Windows registry editor version 5.00

[HKEY _ Class _ Root \ * \ Shell \ Operation Mode]

@ = "Administrator takes ownership"

"Non-working directory" = ""

[HKEY _ Class _ Root \ *\ Shell \ Run Mode \ Command]

@ = "cmd.exe/c Takeaway/f \"%1\ "&; icacls \ " % 1 \ "/grant administrator s:F "

" isolated command " = " cmd.exe/c takeown/f \ " % 1 \ " & amp; icacls \ " % 1 \ "/grant administrator s:F "

[HKEY _ Class _ Root \exefile\shell\runas2]

@ = "Administrator takes ownership"

"Non-working directory" = ""

[HKEY _ class _ ROOT \ exefile \ shell \ runas 2 \ command]

@ = "cmd.exe/c Takeaway/f \"%1\ "&; icacls \ " % 1 \ "/grant administrator s:F "

" isolated command " = " cmd.exe/c takeown/f \ " % 1 \ " & amp; icacls \ " % 1 \ "/grant administrator s:F "

[HKEY _ Class _ Root \ Directory \ Shell \ Operation Mode]

@ = "Administrator takes ownership"

"Non-working directory" = ""

[HKEY _ Class _ Root \ Directory \ Shell \ Operation Mode \ Command]

@ = "cmd.exe/c Takeaway/f \"%1\ "/r/d y&; icacls \ " % 1 \ "/grant administrator s:F/t "

"Isolated command" = "cmd.exe/c takes off/f \"%1\ "/r/d y&; icacls \ " % 1 \ "/grant administrator s:F/t "

Xxx is any name ~ then double-click the xxx.reg file to import the registry.

Second download:

Click the download link with Thunder to download:

Weather forecast gadget file WIN7Weather.Gadget.rar

After downloading, unzip and click Install.

Step 3: enter the following folder or copy the downlink address and paste it into the address bar on the browser or my computer, and press enter to enter.

c:\ Program Files \ Windows Sidebar \ Gadgets \ Weather。 Gadget \zh-CN\js

Then use Notepad to open the file localizedStrings and edit it.

There are three consecutive lines in this file, as follows

L _ localized strings _ text ['DefaultCity'] =' Xichang, China';

l _ localized strings _ Text[' DefaultLocationCode ']= ' WC:chxx 0363 ';

l _ localized strings _ Text[' default unit ']= ' Celsius ';

After the first line:' Xichang, China'; It means "Xichang, China"

After the second line:' WC: chxxo363'; CHXX0363 in it represents the weather forecast code of Xichang.

After the third line:' Celsius'; Representative degree-day.

What we need to modify now is the first line and the first line.

The first line reads' Xichang, China'; If you change it to the pinyin of your own city, you can remember the capitalization of the previous letters, such as "Shanghai", and change it to "Shanghai, CHN"; Just do it.

The second line is the most important: put' WC: CHXX 0363'; The weather forecast code of our own city is also changed to' WC: CHXX 0116' taking "Shanghai" as an example;

The third line does not need to be modified.

Click Save after modification.

Note: If you still can't save it, you don't have administrative authority. Please click to see how to change administrative rights [/color]

.............

Click on the weather forecast code of each city to view:

...............

The fourth step is even more critical:

Also in the folder c: \ program files \ Windows Sidebar \ gadgets \ weather.gadget \ zh-cn \ js.

Weather, this file is opened with notepad, and when you look down, the following figure will appear:

Case ("China"):

RetLocation = "China-Peking";

Break;

This content mainly displays the Chinese name of the weather in the position on the gadget. Write if you want to add Shanghai.

Case ("China"):

RetLocation = "China-Shanghai";

Break;

You can add or modify the above contents in the original document.

Click Save As after modification.

If the prompt cannot be saved or rejected, please modify the administrative rights.

Now open the weather forecast widget.