I have a Visual Basic script setup to create a Shortcut but there is a need for an additional variable to show at the end of the target path after the quote.
I.E. “D:\Program Files\Test\Testing.exe” CLIENT
I need to know how to get the word CLIENT to appear after the ” in the Target Path Field
This is what I have:
If fso.FolderExists(“D:\Program Files\Test”) Then
TESTFolder = “D:\Program Files\Test”
ElseIf fso.FolderExists(“C:\Program Files\Test”) Then
TESTFolder = “C:\Program Files\Test”
End If
If TESTFolder <> “” Then
set FileShortcut = WshShell.CreateShortcut(ToolsFolder & “\Test V2.lnk”)
FileShortcut.TargetPath = TESTFolder & “\Testing.exe”
FileShortcut.Description = “Test V2”
FileShortcut.WorkingDirectory = TESTFolder
FileShortcut.IconLocation = TESTFolder & “\MEDICAL.ICO”
FileShortcut.Save
End If