Slackoff01
IS-IT--Management
First I am very new to VBS but am looking to put together a login script that will create a link back to my submit request form.
I need for it to force open a new IE browser as many use Firefox here but must use IE to gain access to link.
Thus far I have been able to get it to open new IE and direct to what I am after all while also creating the desktop shortcut I need. The downside is when this new link is used it doesn't properly direct to URL.
*Note when I am getting file to run firs time I am just running script from folder locally
Heres what I put together any input is greatly appreciated!
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Set objShortcut= objShell.CreateShortcut(strDesktop & "\Tech Support.lnk")
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "iexplore With objShortcut
.TargetPath = "iexplore.exe .IconLocation = Windir & "%SystemRoot%\system32\SHELL32.dll, 23"
.WorkingDirectory = strDesktop
.Save
End With
I need for it to force open a new IE browser as many use Firefox here but must use IE to gain access to link.
Thus far I have been able to get it to open new IE and direct to what I am after all while also creating the desktop shortcut I need. The downside is when this new link is used it doesn't properly direct to URL.
*Note when I am getting file to run firs time I am just running script from folder locally
Heres what I put together any input is greatly appreciated!
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Set objShortcut= objShell.CreateShortcut(strDesktop & "\Tech Support.lnk")
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "iexplore With objShortcut
.TargetPath = "iexplore.exe .IconLocation = Windir & "%SystemRoot%\system32\SHELL32.dll, 23"
.WorkingDirectory = strDesktop
.Save
End With