Opened on Sep 13, 2017 at 4:34:29 PM
Closed on Oct 4, 2017 at 8:20:58 PM
#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 , on Sep 14, 2017 at 4:42:41 PM
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 , on Oct 4, 2017 at 8:20:58 PM
| 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