因为是在测试环境,我只有一个C盘分区,所以在C盘根目录下创建命名为Desktop.txt的文件文件(名称可任意定义)。
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610260vnc5.png"></a>
然后双击打开刚才新建的Desktop.txt的文本文件进行编辑
[Shell]
Command=2
IconFile=Explorer.exe,3
[Taskbar]
Command=ToggleDesktop
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_13576102606TLw.png"></a>
保存后,将.txt的扩展名更改为.scf格式的
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610260iZUo.png"></a>
然后开始设置计划任务:
通过运行taskschd.msc,打开计划任务控制台
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_13576102618l3j.png"></a>
开始创建任务
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610262CLf8.png"></a>
名称:Desktop
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610262IrPA.png"></a>
切换到触发器选项--新建----开始任务类型---登陆时
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_13576102633fst.png"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_13576102639gob.png"></a>
切换到--操作标签---新建---程序或脚本---选择C盘根目录下创建的命名为Desktop.scf
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610264veLi.png"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_13576102646us6.png"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610265FlRM.png"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610265f3of.png"></a>
确认后,测试结果,将计算机重启
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610266en4x.png"></a>
重启后登陆后,正常显示桌面
<a href="http://gaowenlong.blog.51cto.com/attachment/201301/8/451336_1357610266ND1a.png"></a>
本文转自 高文龙 51CTO博客,原文链接:http://blog.51cto.com/gaowenlong/1111301,如需转载请自行联系原作者