Shortcut Argument
Hi again. I've got another problem in making shortcuts..
This is the code I'm using. (Usually, its incomplete but it should be a good information)
I don't know what is the command for the arguments since I'm getting an error of incorrect parameter.
Example Shortcut:
When I always make shortcuts like that, it happens to be a wrong parameter.
Even I use The code below, it still occurs..
Any suggestions?
Code:
Dim [Object] As Object = CreateObject("WScript.Shell")
[Shortcut] = [Object].CreateShortcut([ShortcutName])
[Shortcut].TargetPath = [Filename]
[Shortcut].WorkingDirectory = [StartUpPath]
[Shortcut].WindowStyle = 0
[Shortcut].IconLocation = [Icon]
[Shortcut].Save()
I don't know what is the command for the arguments since I'm getting an error of incorrect parameter.
Example Shortcut:
Code:
[Shortcut].TargetPath = "C:\Program Files\Software\Software.exe" C:\Myfile.dll
Even I use The code below, it still occurs..
Code:
Dim MyFile As String = "C:\Program Files\Software\Software.exe C:\Myfile.dll" [Shortcut].TargetPath = MyFile
