Hi I am trying to make a shortcut that has a switch. I need the first part of the shortcut to be in " and the last part not in " i.e.:
"C:\Program Files\MyApp\app.exe" C:\Program Files\MyApp\appini.ini
Here is what I have:
Dim desktopPath
Dim Shortcut
Set createShell = CreateObject("Wscript.Shell")
desktopPath = createShell.SpecialFolders("Desktop")
Set Shortcut = createShell.CreateShortcut(desktopPath & "\" & "My App" & ".lnk")
Shortcut.TargetPath = "C:\Program Files\MyApp\app.exe" & "C:\Program Files\MyApp\appini.ini"
Shortcut.Save
I need the C:\Program Files\MyApp\appini.ini outside the ""
"C:\Program Files\MyApp\app.exe" C:\Program Files\MyApp\appini.ini
Here is what I have:
Dim desktopPath
Dim Shortcut
Set createShell = CreateObject("Wscript.Shell")
desktopPath = createShell.SpecialFolders("Desktop")
Set Shortcut = createShell.CreateShortcut(desktopPath & "\" & "My App" & ".lnk")
Shortcut.TargetPath = "C:\Program Files\MyApp\app.exe" & "C:\Program Files\MyApp\appini.ini"
Shortcut.Save
I need the C:\Program Files\MyApp\appini.ini outside the ""