Borje Posted June 3, 2022 Share Posted June 3, 2022 (edited) Hi everybody I need help, I have read the help file but I can not have that to works, plase can anybody give me example how the shortcut must be? FileCreateShortcut(@ProgramFilesDir & "\test\Test.cmd",@DeskTopDir & "\test.lnk",@DeskTopDir) ; I want to use icon test.ico in the shortcut what i must do to have that to work with my icon is in @ProgramFilesDir & "\test Edited June 3, 2022 by Borje Link to comment Share on other sites More sharing options...
Musashi Posted June 3, 2022 Share Posted June 3, 2022 40 minutes ago, Borje said: I have read the help file ... Take a look at Parameter 6 = icon [optional] - Full Path/File name of icon to use. 42 minutes ago, Borje said: can anybody give me an example how the shortcut must be? Try (not tested) : FileCreateShortcut(@ProgramFilesDir & "\test\Test.cmd", @DeskTopDir & "\test.lnk", @DeskTopDir, "", "", @ProgramFilesDir & "\test\test.ico") "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Borje Posted June 3, 2022 Author Share Posted June 3, 2022 Hi Musashi that works but I forget to ask my shortgut shold not open in a normal mode I want to be opened in minimize is that possible? Link to comment Share on other sites More sharing options...
Borje Posted June 3, 2022 Author Share Posted June 3, 2022 Hi Musashi and thanks for the help All works now I found the the setting to open the shortcut minimized so all is solved now. 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