livewire Posted May 20, 2005 Share Posted May 20, 2005 Folder links (*.lnk) are not working for me in XP in the FileOpenDialog() function. If I select a link, it does not go to that folder, it returns that specific file (*.lnk). It should not do this, it should go to the directory in which this file is linking. This was working recently, I think this is due to our recent upgrade to XP. If I am doing something wrong, let me know. Create a folder link (for example, create a shortcut to a folder), and try to navigate to that folder using the link in the code below (this code is from the help file for FileOpenDialog). $message = "Hold down Ctrl or Shift to choose multiple files." $var = FileOpenDialog($message, "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 ) If @error Then MsgBox(4096,"","No File(s) chosen") Else $var = StringReplace($var, "|", @CRLF) MsgBox(4096,"","You chose " & $var) EndIf Thanks, Malachi Link to comment Share on other sites More sharing options...
livewire Posted May 20, 2005 Author Share Posted May 20, 2005 I am currently using Autoit3.1.1.36 Link to comment Share on other sites More sharing options...
livewire Posted May 20, 2005 Author Share Posted May 20, 2005 The link should behave how it does if you double-click a link in Aut2Exe after selecting Browse. It should navigate to that folder. I hope I'm being clear. Thanks Link to comment Share on other sites More sharing options...
therks Posted May 20, 2005 Share Posted May 20, 2005 I actually had the opposite problem before XP (not using AutoIt, just navigating folders in general). It wasn't until XP that links to folders seemed to be evaluated at all... My AutoIt Stuff | My Github 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