Opened 17 years ago
Closed 17 years ago
#570 closed Bug (No Bug)
AutoIt problems handling filenames with two or more consecutive dollar signs
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
Ihave used functions FileGetLong and FileGetTime and both gives
error back if filename contains several consecutive dollar signs.
Example of filenames giving error: cbep$$bnk.txt
cbep$$$bnk.txt
Works for filenames: cbep$bnk.txt
cbep$bn$k.txt
The filename cbep$$bnk.txt comes from (via FTP) an UNISYS Clear Path
mainframe machine causing problems in my PC when trying to set the
correct modification time with an AutoIt script.
Attachments (1)
Change History (5)
comment:1 by , 17 years ago
| Severity: | Blocking → None |
|---|
comment:2 by , 17 years ago
I don't know where you find FileGetLong, but for FileGetTime("cbep$$bnk.txt") that's OK under my XP/Sp3 on a local file with 3.2.12.1
Can you describe your environment?
Please follow bug reporting directives (repro script, Os version, data ...)
follow-up: 4 comment:3 by , 17 years ago
It seems that it has to do with the use of Opt("ExpandVarStrings", 1) function.
It seems that AutoIt is not differentiating between literals and variabelnames and
the actual contents of variabelnames. Literals and varaiabelnames is part of the
AutoIt language at compilation time and should be interpreted at compilation time. I have made a simpel script to show what I meen. AutoIt is intepreting the contents of variabels at runtime (looking for $ signs) when it shouldn't.
I am running Windows XP PRO SP3 (English version) and AutoIt 3.2.12.0.
I like AutoIt very much and wan't to be some help if I can!
See attachment for the script FilenameTest.au3. It creates 5 txt files with 2 lines in each.
Regards
S-O
by , 17 years ago
| Attachment: | FilenameTest.au3 added |
|---|
comment:4 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Replying to sven-olof.gransten2@tele2.se:
It seems that it has to do with the use of Opt("ExpandVarStrings", 1) function.
It seems that AutoIt is not differentiating between literals and variabelnames and
the actual contents of variabelnames. Literals and varaiabelnames is part of the
AutoIt language at compilation time and should be interpreted at compilation time. I have made a simpel script to show what I meen. AutoIt is intepreting the contents of variabels at runtime (looking for $ signs) when it shouldn't.
I am running Windows XP PRO SP3 (English version) and AutoIt 3.2.12.0.
I like AutoIt very much and wan't to be some help if I can!
See attachment for the script FilenameTest.au3. It creates 5 txt files with 2 lines in each.
Regards
S-O
A little more reading of the documentation and a little less making false assumptions about how the language works will go a long way towards remedying your issue which is not a bug.

Automatic ticket cleanup.