Opened 8 years ago
Closed 8 years ago
#3566 closed Bug (No Bug)
FileChangeDir is changing @TempDir
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.2 | Severity: | None |
| Keywords: | FileChangeDir @TempDir | Cc: |
Description
Code:
DirCreate("O:\tmp.dir")
ConsoleWriteError("@TempDir=" & @TempDir & " workingdir=" & @WorkingDir & @CRLF)
FileChangeDir("O:\tmp.dir");
ConsoleWriteError("@TempDir=" & @TempDir & " workingdir=" & @WorkingDir & @CRLF)
FileChangeDir("C:\temp");
ConsoleWriteError("@TempDir=" & @TempDir & " workingdir=" & @WorkingDir & @CRLF)
Exit
Output:
@TempDir=O: workingdir=C:\Users\User\Desktop
@TempDir=O:\tmp.dir workingdir=O:\tmp.dir
@TempDir=O: workingdir=C:\temp
Expected output:
@TempDir=O: workingdir=C:\Users\User\Desktop
@TempDir=O: workingdir=O:\tmp.dir
@TempDir=O: workingdir=C:\temp
Attachments (0)
Change History (3)
comment:2 by , 8 years ago
I just ran your code and it's not happening for me either.
@TempDir=C:\Users\xxxx\AppData\Local\Temp workingdir=F:\AutoItScripts
@TempDir=C:\Users\xxxx\AppData\Local\Temp workingdir=F:\tmp.dir
@TempDir=C:\Users\xxxx\AppData\Local\Temp workingdir=C:\temp
Even if this was happening, your post shows it only happening once and then resetting itself to the original folder location, which seems odd. If FileChangeDir was actually changing the temp folder's location, you'd think that it should change it every time.
comment:3 by , 8 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Closing as nobug due to lack of response.
Jos

I can't replicate this yet.
What happens when you set your tempdir to "O:\"
Jos