Here is my program. It works just fine, creates an icon on your desktop that launches IE when I click on it. My problem is how to tell to oShellLink.TargetPath to go to a certain website ( If I put it in the website's URL, IE goes there but it uses one of the existing ones. I want to open a new browser with the URL each time they click on the icon. Do you know how can I do that?
Sub CreateIcon()
Dim WshShell, oShellLink
set WshShell = CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Timesheet Pro.lnk")
oShellLink.TargetPath = "Program Files\Internet Explorer\IEXPLORE.EXE"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+Y"
oShellLink.IconLocation = "V:\timesheets.exe, 0"
oShellLink.Description = "Timesheet Pro"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
End Sub
Sub CreateIcon()
Dim WshShell, oShellLink
set WshShell = CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Timesheet Pro.lnk")
oShellLink.TargetPath = "Program Files\Internet Explorer\IEXPLORE.EXE"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+Y"
oShellLink.IconLocation = "V:\timesheets.exe, 0"
oShellLink.Description = "Timesheet Pro"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
End Sub