Modify

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:1 by Jos, 8 years ago

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

Jos

Last edited 8 years ago by Jos (previous) (diff)

comment:2 by BrewManNH, 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 Jos, 8 years ago

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.