Sign in to follow this  
Followers 0
latoonne

Shortcut with parameters

4 posts in this topic

Hello everybody

I want to create this shorcut but I have an issue, if i add the parameter -PLAYER behind the program when i start it it doesn't works.

DirCreate(@ProgramsCommonDir& "\WebEx")

DirCreate(@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player")

FileCreateShortcut(_PrgFiles() & "WebEx\Record Playback\AtAuthor.exe" & " -PLAYER",@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player\WebEx Player.lnk",@WindowsDir,"","","-3")

If i delete -PLAYER the program works.

This line is the param which is create with the true installtaion "C:\Program Files\WebEx\Record Playback\AtAuthor.exe" -PLAYER

Thx

Share this post


Link to post
Share on other sites

Hello everybody

I want to create this shorcut but I have an issue, if i add the parameter -PLAYER behind the program when i start it it doesn't works.

DirCreate(@ProgramsCommonDir& "\WebEx")

DirCreate(@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player")

FileCreateShortcut(_PrgFiles() & "WebEx\Record Playback\AtAuthor.exe" & " -PLAYER",@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player\WebEx Player.lnk",@WindowsDir,"","","-3")

If i delete -PLAYER the program works.

This line is the param which is create with the true installtaion "C:\Program Files\WebEx\Record Playback\AtAuthor.exe" -PLAYER

Thx

Check the FileCreateShortcut() helpfile:

FileCreateShortcut ( "file", "lnk" [, "workdir" [, "args" [, "desc" [, "icon" [, "hotkey" [, icon number [, state]]]]]]] )

You need to specify the arguments ("-PLAYER" in this case) in the fourth parameter of the FileCreateShortcut call. You put it after the first one, and that will not work because the string including the -PLAYER is not a file. The first parameter of the function call needs to be a file.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

The "-PLAYER" parameter goes in the shortcuts Arguments section. eg:

FileCreateShortcut(_PrgFiles() & "WebEx\Record Playback\AtAuthor.exe",@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player\WebEx Player.lnk",@WindowsDir,"-PLAYER","","-3")

Share this post


Link to post
Share on other sites

The "-PLAYER" parameter goes in the shortcuts Arguments section. eg:

FileCreateShortcut(_PrgFiles() & "WebEx\Record Playback\AtAuthor.exe",@ProgramsCommonDir & "\WebEx\WebEx Recorder & Player\WebEx Player.lnk",@WindowsDir,"-PLAYER","","-3")
Thank you very much

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0