【VBS】创建桌面快捷方式
目标:%windir%\system32\notepad.exe%windir%\system32\drivers\etc\hosts...
目标:%windir%\system32\notepad.exe %windir%\system32\drivers\etc\hosts
展开
2012-04-22
展开全部
Set S = WScript.CreateObject("WScript.Shell")
Desktop = S.SpecialFolders("Desktop")
set lnk = S.CreateShortcut(Desktop & "\HOSTS.lnk")
lnk.TargetPath = "%windir%\system32\write.exe"
lnk.Arguments = "%windir%\system32\drivers\etc\hosts"
lnk.IconLocation = "write.exe, 0"
lnk.Description = "屏蔽恶意网站"
lnk.WorkingDirectory = Desktop
lnk.Save
Desktop = S.SpecialFolders("Desktop")
set lnk = S.CreateShortcut(Desktop & "\HOSTS.lnk")
lnk.TargetPath = "%windir%\system32\write.exe"
lnk.Arguments = "%windir%\system32\drivers\etc\hosts"
lnk.IconLocation = "write.exe, 0"
lnk.Description = "屏蔽恶意网站"
lnk.WorkingDirectory = Desktop
lnk.Save
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询