Modify

Opened 7 years ago

Closed 7 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 Changed 7 years ago by Jos

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

Jos

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

comment:2 Changed 7 years ago by BrewManNH

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 Changed 7 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

Closing as nobug due to lack of response.
Jos

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.