kman Posted January 16, 2007 Share Posted January 16, 2007 I have seen these on the forums but have not been able to get any to work. Here is what I am trying. I think I may be off on my quotes? Thanks for any help!! Run(@ComSpec & ' /c' @DesktopCommonDir & "NAME.lnk",@SW_HIDE) Link to comment Share on other sites More sharing options...
James Posted January 16, 2007 Share Posted January 16, 2007 Run(@DesktopCommonDir & "NAME.lnk") Is that what you want? Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Helge Posted January 16, 2007 Share Posted January 16, 2007 (edited) ShellExecute(@DesktopCommonDir & "\NAME.lnk") Edited January 16, 2007 by Helge Link to comment Share on other sites More sharing options...
kman Posted January 16, 2007 Author Share Posted January 16, 2007 $file = @DesktopCommonDir & "\NAME.lnk" Run(@ComSpec & ' /c start "" "' & $file & '"', "", @SW_HIDE) Was able to get it to work with this one. Thank you! I understand a little of what it is doing but dont totally get all of the quotes and how and why they are used. Just me not understanding it. Thanks everyone for your time, it is very much appreciated. This is an excellent group!! Link to comment Share on other sites More sharing options...
Helge Posted January 16, 2007 Share Posted January 16, 2007 If the ShellExecute-method didn't work, then you most likely need to update your AutoIt, as that functionis pretty new. The newest version at the moment is 3.2.2.0. Link to comment Share on other sites More sharing options...
kman Posted January 17, 2007 Author Share Posted January 17, 2007 Yes, I had the previous version, I will give the new one a try. Thanks!!! 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