Sign in to follow this  
Followers 0
anixon

Desktop Icon

5 posts in this topic

How would you create a desktop icon and place on the desktop based on the known location of the file for example c:\myfolder\autoit\myscript.au3. In this case the icon would be the shortcut to myscript.au3

Help is always appreciated Ant.. :D

Share this post


Link to post
Share on other sites



Look at FileCreateShortcut


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I third the motion!!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks for the prompt reply this works:

FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"/e,c:\", "This is an myscript link;-)", @SystemDir & "\shell32.dll", "^!t","15", @SW_MINIMIZE)

Question is how do I substitute the icon identified as "15" with the icon compiled with myscript.au3 + icon1.ico to create myscript.exe? Ant..

Share this post


Link to post
Share on other sites

Thanks for the prompt reply this works:

FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"/e,c:\", "This is an myscript link;-)", @SystemDir & "\shell32.dll", "^!t","15", @SW_MINIMIZE)

Question is how do I substitute the icon identified as "15" with the icon compiled with myscript.au3 + icon1.ico to create myscript.exe? Ant..

Sorry for putting the question before I read Help properly this works as required:

FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"", "This is a link to myscript", @scriptdir & "\Icons\icon1.ico", "","", @SW_MINIMIZE)

Thanks to the respondants... Ant.. :D

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