|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『楼 主』:
求dos版刷新桌面
使用 LLM 解释/回答一下
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
这是vbs版的,于是我写了下面的
echo Set WSHShell = WScript.CreateObject("WScript.Shell") >temp.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>temp.vbs
cscript temp.vbs
上面的代码全部执行成功,可是就是不能刷新桌面,它后台运行了
郁闷,要它安静运行,它就不安静,要它不安静运行,嘿,它偏偏安静的不得了
谁能给个dos 版的我
Last edited by wert123 on 2007-6-1 at 03:01 PM ]
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
This is the VBS version, so I wrote the following
echo Set WSHShell = WScript.CreateObject("WScript.Shell") >temp.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>temp.vbs
cscript temp.vbs
The above code all executed successfully, but it just can't refresh the desktop. It runs in the background.
Depressed, when I want it to run quietly, it isn't quiet; when I want it not to run quietly, hey, it's surprisingly quiet.
Who can give me a DOS version?
Last edited by wert123 on 2007-6-1 at 03:01 PM ]
|
|
2007-5-23 20:47 |
|
|
xswdong
中级用户
  
积分 216
发帖 129
注册 2007-2-14
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
taskkill/f /im explorer.exe &&start C:\WINDOWS\explorer.exe
是这个东西吗?
Is this thing?
|
|
2007-5-23 23:34 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
taskkill这个是可以,不过桌面一下没有,一下又出来,会吓到一些菜鸟,还以为病毒
嵌入explorer.exe了呢
有点兴师动众的感觉,你再帮我想想好吗,麻烦大家帮我想想吧
taskkill is okay, but the desktop disappears and then appears, which will scare some newbies, thinking it's a virus embedded in explorer.exe. It feels a bit overkill. Can you think of another way for me? Please help everyone think about it.
|
|
2007-5-24 13:27 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
难道问题幼稚了吗,怎么没人来
Last edited by wert123 on 2007-5-30 at 04:38 PM ]
Is the question naive? Why is no one here
Last edited by wert123 on 2007-5-30 at 04:38 PM ]
|
|
2007-5-26 11:56 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-5-30 16:39 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
试试这个 gpupdate /Force .
Try this gpupdate /Force.
|
|
2007-5-30 20:15 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
因为焦点不在桌面上,所以按F5无效
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
Because the focus is not on the desktop, so the F5 key is invalid
|

你好,脚本专家!
<a target=blank href=tencent://message/?uin=29654761&Site=www.111.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:29654761:5 alt="点击这里给我发消息"></a> |
|
2007-5-30 20:28 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
gpupdate /Force
我查了一下帮助,这个命令好像是上传交互策略用的吧
我先把显示扩展名禁用了,再运行下面的代码,再运行上面的代码,桌面闪了下,我很兴奋,可是我的电脑上面的文件扩展名还没有出来,非要用右键菜单刷新才行,郁闷,我的电脑怎么不行啊,是不是以前中的病毒改了什么的啊
@echo off&color f0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f
Last edited by wert123 on 2007-6-2 at 10:48 AM ]
gpupdate /Force
I checked the help, this command seems to be used to upload interaction policies or something?
I first disabled the display of file extensions, then ran the following code, then ran the above code, the desktop flickered, I was very excited, but the file extensions on my computer still didn't come out, I have to refresh with the right-click menu, so depressed, why is my computer not working? Is it because I was infected with a virus before and something was changed?
@echo off&color f0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f
Last edited by wert123 on 2007-6-2 at 10:48 AM ]
|
|
2007-5-31 17:23 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by zhoushijay at 2007-5-30 08:28 PM:
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
因为焦点不在桌面上,所以按F5无效
说的很对,真是一针见血啊
那你能用dos帮我把焦点弄到桌面上吗,大家一起来帮帮我吧
Originally posted by zhoushijay at 2007-5-30 08:28 PM:
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
Because the focus is not on the desktop, so pressing F5 is invalid
That's very correct, really hits the nail on the head
Can you use DOS to help me get the focus to the desktop? Everyone, come and help me!
|
|
2007-5-31 17:32 |
|
|
baomaboy
银牌会员
    
积分 1513
发帖 554
注册 2005-12-30
状态 离线
|
|
2007-6-1 12:19 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
baomaboy 每次都能找到最有效的解决办法, ^^
baomaboy always finds the most effective solution, ^^
|

你好,脚本专家!
<a target=blank href=tencent://message/?uin=29654761&Site=www.111.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:29654761:5 alt="点击这里给我发消息"></a> |
|
2007-6-1 12:22 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
@echo off&color f0
echo Dim WshSHell,FSO >temp.vbs
echo Set WshSHell = WScript.CreateObject("WScript.Shell") >>temp.vbs
echo Set FSO = CreateObject("Scripting.FileSystemObject") >>temp.vbs
echo scfFileName="zm.scf" >>temp.vbs
echo scfFilePath=fso.GetSpecialFolder(1) >>temp.vbs
echo Set NewFile = FSO.CreateTextFile(FSO.BuildPath(scfFilePath ,scfFileName), True) >>temp.vbs
echo NewFile.WriteLine("") >>temp.vbs
echo NewFile.WriteLine("Command=2") >>temp.vbs
echo NewFile.WriteLine("IconFile=explorer.exe,3") >>temp.vbs
echo NewFile.WriteLine("") >>temp.vbs
echo NewFile.WriteLine("Command=ToggleDesktop") >>temp.vbs
echo NewFile.Close >>temp.vbs
echo wscript.sleep(200) >>temp.vbs
echo wshshell.run "zm.scf" >>temp.vbs
echo wshshell.SendKeys "{F5}+{F10}e">>temp.vbs
echo wscript.sleep(200) >>temp.vbs
echo wscript.quit >>temp.vbs
@temp.vbs
生成的temp.vbs能行,dos版就不行了,扩展名还是显示不出来
哎,也许我的电脑真是不行了,看来又要重装系统了
Last edited by wert123 on 2007-6-1 at 03:07 PM ]
@echo off&color f0
echo Dim WshSHell,FSO >temp.vbs
echo Set WshSHell = WScript.CreateObject("WScript.Shell") >>temp.vbs
echo Set FSO = CreateObject("Scripting.FileSystemObject") >>temp.vbs
echo scfFileName="zm.scf" >>temp.vbs
echo scfFilePath=fso.GetSpecialFolder(1) >>temp.vbs
echo Set NewFile = FSO.CreateTextFile(FSO.BuildPath(scfFilePath ,scfFileName), True) >>temp.vbs
echo NewFile.WriteLine("") >>temp.vbs
echo NewFile.WriteLine("Command=2") >>temp.vbs
echo NewFile.WriteLine("IconFile=explorer.exe,3") >>temp.vbs
echo NewFile.WriteLine("") >>temp.vbs
echo NewFile.WriteLine("Command=ToggleDesktop") >>temp.vbs
echo NewFile.Close >>temp.vbs
echo wscript.sleep(200) >>temp.vbs
echo wshshell.run "zm.scf" >>temp.vbs
echo wshshell.SendKeys "{F5}+{F10}e">>temp.vbs
echo wscript.sleep(200) >>temp.vbs
echo wscript.quit >>temp.vbs
@temp.vbs
The generated temp.vbs works, but it doesn't work in the DOS version, and the file extension still doesn't show up.
Hey, maybe my computer is really not working right. It seems I have to reinstall the system again.
Last edited by wert123 on 2007-6-1 at 03:07 PM ]
|
|
2007-6-1 14:59 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
scf默认是NeverShowExt
所以你不管怎么设置那个显示扩展名它本来就是不显示……
还有显示桌面可以……
Dim objSHA
Set objSHA = CreateObject("Shell.Application")
objSHA.ToggleDesktop
Set objSHA = Nothing
就ok……理论上就2行……
The default of scf is NeverShowExt. So no matter how you set that to show file extensions, it just doesn't show... Also, to show the desktop can...
Dim objSHA
Set objSHA = CreateObject("Shell.Application")
objSHA.ToggleDesktop
Set objSHA = Nothing
It's okay... theoretically it's just 2 lines...
|
|
2007-6-1 16:55 |
|
|
pighead123
初级用户
 
积分 42
发帖 23
注册 2006-2-13
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
|

我是allyesno 帐号忘记密码了 妈的 |
|
2007-6-1 19:16 |
|
|
48344620
初级用户
 
积分 52
发帖 27
注册 2006-10-27
状态 离线
|
|
2007-6-1 22:00 |
|