tony Posted February 9, 2009 Share Posted February 9, 2009 Hello, I need to be able to open a shortcut properties and change the run mode from Normal window to either Maximized or Minimized. I tried to get the shortcut properties, delete it and recreate it but it's not working: Local $details[7] $details = FileGetShortcut(@ProgramsCommonDir & "my_link.lnk") FileDelete (@ProgramsCommonDir & "my_link.lnk") FileCreateShortcut($details[0],@ProgramsCommonDir & "my_link.lnk",$details[1],$details[2],$details[3],$details[4],$details[5],$details[6]) Any suggestions? Thanks a lot. Link to comment Share on other sites More sharing options...
Authenticity Posted February 9, 2009 Share Posted February 9, 2009 (edited) Yup, common mistake. You've forgot to add '\' in front of the file name to indicate that it resides inside this folder and it's not a strange folder on it's own. Edited February 9, 2009 by Authenticity Link to comment Share on other sites More sharing options...
bobchernow Posted February 9, 2009 Share Posted February 9, 2009 Took me a few minutes to run it on my system but the problem is you are missing the terminating slash. @ProgramsCommonDir does not end with a \ so you need to add it. Bob --------------------bobchernow, Bob ChernowWhat a long strange trip it's beenUDFs: [post="635594"]Multiple Monitor Screen Resolution Change[/post] Link to comment Share on other sites More sharing options...
tony Posted February 9, 2009 Author Share Posted February 9, 2009 Sorry for the confusion but the '\' was a typo. My real issue is that the shortcut created this way doesn't work. Is there a different way to modify an existing shortcut? I would like to be able to open the property of the file and manipulate the content the same way I can do with the mouse. Thanks for your help. tony Link to comment Share on other sites More sharing options...
Bert Posted February 9, 2009 Share Posted February 9, 2009 You can create a shortcut to your specs, then delete the old one. Use FileCreateShortcut to make it, then use FileDelete to delete the old one The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
tony Posted February 9, 2009 Author Share Posted February 9, 2009 You can create a shortcut to your specs, then delete the old one. Use FileCreateShortcut to make it, then use FileDelete to delete the old oneThat was my approach in my original posting. What I found was that the shortcut doesn't work. 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