Rabu, 29 April 2009

contoh vb script untuk membuat shortcut

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.createShortcut(strDesktop &"\Dik Regedit.lnk")
oShellLink.TargetPath = "C:\Windows\regedit.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "C:\Windows\regedit.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save

2 komentar:

Dedik PS mengatakan...

Simpan dengan extensi 'vbs'..

Anonymous mengatakan...

Hi Iam Prabhu from chennai,joined today in this forum... :)

Template by : kendhin x-template.blogspot.com