AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loop, filepattern bug

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 3592
Location: Belgrade

PostPosted: Thu Dec 20, 2007 3:25 pm    Post subject: Loop, filepattern bug Reply with quote

Code:
   Loop, .., 1
       msgbox % A_LoopFileLongPath

_________________
Back to top
View user's profile Send private message MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5009
Location: imaginationland

PostPosted: Thu Dec 20, 2007 3:34 pm    Post subject: Reply with quote

Strange, ..\* works.
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3592
Location: Belgrade

PostPosted: Fri Dec 21, 2007 9:40 am    Post subject: Reply with quote

Its not the same thing. Titan, you were hasty, as always. Rolling Eyes

In your attitude, some new discovery:

Strange, this works:

Code:
 Loop, c:\program files, 1
       msgbox % A_LoopFileLongPath


Laughing
_________________
Back to top
View user's profile Send private message MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5009
Location: imaginationland

PostPosted: Fri Dec 21, 2007 12:15 pm    Post subject: Reply with quote

I know it's not the same, I just found it weird how ..\* could work when .. doesn't. I don't know why you always fail to understand me.

Code:
Loop, ., 1
   MsgBox, Long path:   %A_LoopFileLongPath%`nFull path:   %A_LoopFileFullPath%

_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3592
Location: Belgrade

PostPosted: Fri Dec 21, 2007 12:49 pm    Post subject: Reply with quote

Quote:
I don't know why you always fail to understand me.

I usualy don't pay much attention to low informed prepotent folks.
_________________
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2472
Location: Australia, Qld

PostPosted: Fri Dec 21, 2007 12:55 pm    Post subject: Reply with quote

Weird indeed. I ran the following script in different locations, and got some strange results...
Code:
Loop, %A_WorkingDir%, 1
    msgbox % "1: " A_LoopFileLongPath
Loop, %A_WorkingDir%\.., 1
    msgbox % "2: " A_LoopFileLongPath
Loop, %A_WorkingDir%\..\.., 1
    msgbox % "3: " A_LoopFileLongPath

  • In Z:\, I got nothing.
  • In Z:\1, I got only 1: Z:\1.
  • In Z:\1\2, I got 1: Z:\1\2 and 2: Z:\1\2\1. Shocked
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3592
Location: Belgrade

PostPosted: Fri Dec 21, 2007 1:29 pm    Post subject: Reply with quote

Actually, I encountered this when using your solution for relative ini file path. I tried to use it in ChooseIconEx, but as it has this bug, I finished like this.

Z:\1\2\1 was exactly what I was getting.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group