anixon Posted June 8, 2009 Share Posted June 8, 2009 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.. Link to comment Share on other sites More sharing options...
herewasplato Posted June 8, 2009 Share Posted June 8, 2009 Look at FileCreateShortcut [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted June 8, 2009 Share Posted June 8, 2009 I third the motion!! 8) Link to comment Share on other sites More sharing options...
anixon Posted June 8, 2009 Author Share Posted June 8, 2009 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.. Link to comment Share on other sites More sharing options...
anixon Posted June 8, 2009 Author Share Posted June 8, 2009 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.. 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