找回密码
 加入
搜索
查看: 4588|回复: 1

[AU3基础] win7添加文件快捷方式到任务栏

[复制链接]
发表于 2014-8-3 11:03:03 | 显示全部楼层 |阅读模式
Local $Taskbar= "C:\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
        Local $DesIE= "C:\windows\IEx64"
        If Not FileExists($Taskbar) Then DirCreate($Taskbar)
            FileInstall("c:\IEx64.reg",$DesIE &"\IEx64.reg",1)
            Run(@ComSpec & " /c " & 'regedit.exe /s '&$DesIE &"\IEx64.reg", "", @SW_HIDE)
            FileInstall("c:\IEx64.lnk",$DesIE &"\IEx64.lnk",1)
            FileMove($DesIE &"\IEx64.lnk",$Taskbar &"\IEx64.lnk",1 + 8)
            Sleep(100)
            If FileExists ($DesIE &"\IEx64.reg") Then FileDelete($DesIE &"\IEx64.reg")
                ProcessClose("explorer.exe")
            Run(@ComSpec & " /c " & 'taskkill.exe /f /im explorer.exe & c:\windows\explorer.exe', "", @SW_HIDE)

这是win7添加文件快捷方式到任务栏的,这个简单的代码可以添加就是要结束explorer.exe进程,太麻烦了,开机调用的程序也关了,有好的办法吗,试了好多个不重启刷新注册表的方法也不行。大大们,花分把钟时间帮我看下。。
发表于 2014-8-3 23:44:49 | 显示全部楼层
本帖最后由 yinbinly 于 2014-8-3 23:46 编辑

一看ie.exe就不想帮你
首先 现在当前目录创建一个iex64的快捷方式ShellExecute("C:\windows\IEx64.ink","","C:\Users\Administrator\Desktop","taskbarpin")  
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-7-5 12:38 , Processed in 0.072473 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表