Modify

#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:1 by Jos, on Sep 14, 2017 at 9:37:08 AM

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

Jos

comment:2 by BrewManNH, 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 Jos, on Oct 4, 2017 at 8:20:58 PM

Resolution: No Bug
Status: newclosed

Closing as nobug due to lack of response.
Jos

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.