Sign in to follow this  
Followers 0
Diana (Cda)

[Resolved] FileCreateShortcut

3 posts in this topic

#1 ·  Posted (edited)

Hi! I checked the help file as always and in the forums but perhaps I don't know the right term and that's why nothing is coming up. My script is this:

FileCreateShortcut(@ScriptDir & "\z- startup MOB bkp.au3", @StartMenuDir & "\Programs\Startup\MOB bkp.lnk")
Because an AI script is giving better results than a simple shortcut link to the EXE, that's why the shortcut is naturally showing an AI icon.

Without changing it manually afterwards, is there a way for AutoIt to dump the icon's path into the icon part of the created shortcut? Or whatever else does the job of putting in a different icon into the shortcut?

Thx. :P

Edited by Diana (Cda)

Share this post


Link to post
Share on other sites



As read from the Help File

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

"icon" = [optional] Full Path/File name of icon to use.

icon number = [optional] The icon instance to use (usually 0)

Share this post


Link to post
Share on other sites

As read from the Help File

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

"icon" = [optional] Full Path/File name of icon to use.

icon number = [optional] The icon instance to use (usually 0)

Hot damn, it finally really clicked in what this type of thing really means, placeholders to skip over unnecessary parts <g>: "", "", "

Darn, took me long enough.

Well, I see that I was totally doing the wrong type of search in the help file. That'll teach me. Anyway, now I know how to make a complete shortcut.

How cool is that! My script has been modified to:

FileCreateShortcut(@ScriptDir & "\z- startup MOB bkp.au3", @StartMenuDir & "\Programs\Startup\MOB bkp.lnk", "", "", "", @ScriptDir & "\MOB icon.ico")

Thanks! :P

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