首页 > 知识问答 > 怎样在桌面上显示天气和时间
怎样在桌面上显示天气和时间
要在桌面上显示天气和时间,你可以使用第三方应用程序或者系统自带的功能,以下是两种方法:
1、使用第三方应用程序:你可以下载并安装一些第三方应用程序,如“360安全卫士”、“腾讯管家”等,这些应用程序通常都包含了天气和时间的显示功能,安装完成后,你可以在桌面上找到相应的图标并点击打开,即可看到实时的天气和时间。
2、使用系统自带的功能:如果你使用的是Windows系统,可以右键点击桌面空白处,选择“新建”->“快捷方式”,然后输入以下命令:
wmic OS Get localdatetime | find "T"
右键点击刚刚创建的快捷方式,选择“属性”,在“目标”文本框中输入以下内容:
powershell.exe -command "(Get-CimInstance -Namespace rootWMI).ExecQuery('select * FROM Win32_OperatingSystem')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=2')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace rootWMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=3')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=4')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace rootWMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=6')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=7')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace rootWMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=8')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=9')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace rootWMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=10')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=11')" && timeout /t 5 && powershell.exe -command "(Get-CimInstance -Namespace root\WMI).ExecQuery('select * FROM MSAcpi_ThermalZoneTemperature WHERE SensorType=12')" && timeout /t 5这样,每次刷新桌面时,就会显示当前的日期、时间以及系统的温度信息,这个方法仅适用于Windows系统。