| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 3592 Location: Belgrade
|
Posted: Thu Dec 20, 2007 3:25 pm Post subject: Loop, filepattern bug |
|
|
| Code: | Loop, .., 1
msgbox % A_LoopFileLongPath |
_________________
 |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Thu Dec 20, 2007 3:34 pm Post subject: |
|
|
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3592 Location: Belgrade
|
Posted: Fri Dec 21, 2007 9:40 am Post subject: |
|
|
Its not the same thing. Titan, you were hasty, as always.
In your attitude, some new discovery:
Strange, this works:
| Code: | Loop, c:\program files, 1
msgbox % A_LoopFileLongPath |
 _________________
 |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Fri Dec 21, 2007 12:15 pm Post subject: |
|
|
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3592 Location: Belgrade
|
Posted: Fri Dec 21, 2007 12:49 pm Post subject: |
|
|
| 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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2472 Location: Australia, Qld
|
Posted: Fri Dec 21, 2007 12:55 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3592 Location: Belgrade
|
Posted: Fri Dec 21, 2007 1:29 pm Post subject: |
|
|
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 |
|
 |
|