latoonne Posted October 10, 2007 Share Posted October 10, 2007 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 Link to comment Share on other sites More sharing options...
SadBunny Posted October 10, 2007 Share Posted October 10, 2007 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. Link to comment Share on other sites More sharing options...
smashly Posted October 10, 2007 Share Posted October 10, 2007 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") Link to comment Share on other sites More sharing options...
latoonne Posted October 10, 2007 Author Share Posted October 10, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now