找回密码
 加入
搜索
查看: 1275|回复: 0

[系统综合] Explorer 问题讨论

[复制链接]
发表于 2012-1-1 09:53:19 | 显示全部楼层 |阅读模式
今天发现结束&重启Explorer小小的额问题,AU3为最新汉化版

使用64位系统编译为32位文件,以下代码任弹出的是文档窗口,而 64为系统编译为64的问题正常
 
ProcessWait ( "explorer.exe" ) 
Run(@ComSpec & " /c " & 'taskkill /f /im explorer.exe ', "", @SW_HIDE)
Sleep(2000)
ShellExecute('explorer.exe')
Exit
但是帮助文档中发现,以下代码可解决此问题,希望可以帮助到大家
DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)
ProcessWait ( "explorer.exe" ) 
Run(@ComSpec & " /c " & 'taskkill /f /im explorer.exe ', "", @SW_HIDE)
Sleep(2000)
ShellExecute('explorer.exe')
Exit
同时大家可以讨论下为什么出现该问题,我也不解!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-3 06:12 , Processed in 0.074396 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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