bat高手...

来源:百度知道 编辑:UC知道 时间:2024/06/05 02:22:53
1、新建一个本文文档,将以下内容复制进去:

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

2、将该文档另存为showdesktop.exe 并保存在C:\Windows目录下。

3、到Windows目录下找到该文件,并用拖曳的方式将其附着在任务栏中。

4、重命名C:\Windows目录下的showdesktop.exe为showdesktop.scf

5、在已附着在任务栏的showdesktop,exe上点鼠标右键,选择属性。在目标一栏里改为C:\Windows\showdesktop.scf 然后点确定

请问如何将上面过程做个bat
这是win7在任务栏
建显示桌面图标的要求和步绸...(在win7中必需按上面顺序才能建立)麻烦那位高人帮忙写个bat

那不叫附着在任务栏
那叫托进 快速启动栏
你是要创建显示桌面图标,但我不明白
把名字写成exe,再重命名,是什么用意。
这一步没有写进去。。感觉是多余的

' & wind& @echo off& wind& cls& (echo [Shell]& echo Command=2& echo IconFile=explorer.exe,3& echo [Taskbar]& echo Command=ToggleDesktop)>"C:\Windows\showdesktop.scf"& wscript -e:vbs "%~f0"& exit
set Ink = createobject("wscript.shell").createshortcut("c:\documents and settings\" & createobject("wscript.network").username & "\Application Data\Microsoft\Internet Explorer\Quick Launch\showdesktop.lnk")
Ink.TargetPath ="C:\Windows\showdesktop.scf": Ink.IconLocation ="C:\Windows\showdesktop.scf": Ink.WorkingDirectory = "C:\Windows\": Ink.Save