kellygirl01
MIS
Hello everyone,
I'm trying to make a script that creates a Telnet shortcut on all users desktop,The script i have creates the shortcut.
The problem is i want to configure the target path to connect to an IP address and port for example C:\WINDOWS\system32\telnet.exe 192.168.1.10 :3000
How do i do this? The script I have so far is below
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFolder = objShell.SpecialFolders("AllUsersDesktop")
Set objShortCut = objShell.CreateShortcut(strDesktopFolder & _
"\Telnet.lnk")
objShortCut.TargetPath = "C:\WINDOWS\system32\telnet.exe"
objShortCut.Description = "TELNET"
objShortCut.HotKey = "Ctrl+Shift+I"
objShortCut.Save
I'm trying to make a script that creates a Telnet shortcut on all users desktop,The script i have creates the shortcut.
The problem is i want to configure the target path to connect to an IP address and port for example C:\WINDOWS\system32\telnet.exe 192.168.1.10 :3000
How do i do this? The script I have so far is below
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFolder = objShell.SpecialFolders("AllUsersDesktop")
Set objShortCut = objShell.CreateShortcut(strDesktopFolder & _
"\Telnet.lnk")
objShortCut.TargetPath = "C:\WINDOWS\system32\telnet.exe"
objShortCut.Description = "TELNET"
objShortCut.HotKey = "Ctrl+Shift+I"
objShortCut.Save