Sign in to follow this  
Followers 0
livewire

Links in XP

4 posts in this topic

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

Share this post


Link to post
Share on other sites



I am currently using Autoit3.1.1.36

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...

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