Build 744: Sets wrong current directory for executed files

Bugs and other issues or requests which have been resolved.
Post Reply
Message
Author
Cpt. Kork
Posts: 5
Joined: 23.01.2012, 06:58

Build 744: Sets wrong current directory for executed files

#1 Post by Cpt. Kork » 19.04.2017, 07:12

A new bug that was introduced in FreeCommander since build 742 x64 (on Win7 SP1 x64):
When starting any executable from inside FreeCommander the executable should be normally provided with the current directory, from where the executable was actually called. In build 744 (or maybe already 743) FreeCommander sets the "current path" for calling the executable always to the folder where FreeCommander.exe is located, not the executable being called.

Repro:
Create a batch file test.bat to display the current directory:

Code: Select all

@echo off
echo %cd%
pause
Now place it in C:\Temp and navigate with FreeCommander to C:\Temp.
Open test.bat either by double click or Enter key from FreeCommander.
When doing this from build 742 you will get:

Code: Select all

C:\Temp
Whereas calling test.bat from 744 will produce:

Code: Select all

C:\Program Files\FreeCommander XE
This applies to all kinds of executables and yields different errors, especially when the executables (called with wrong "current directory") try to access files located in "current directory" instead of the directory where the executables are actually located.

Zorkoff
Posts: 94
Joined: 10.05.2011, 21:14
Location: Boston, MA

Re: Build 744: Sets wrong current directory for executed fil

#2 Post by Zorkoff » 21.04.2017, 15:27

I can confirm this bug report.

I created the test BATCH file as described, copied the file and executed it from several different folders in my file system and different drives.

With FCXE 743 and 744 it always displayed the path of the install directory.

With FCXE 742 it always displayed the path containing the BATCH file.

This is a bug that should be fixed!

Note that executing %cd% from the DOS Box of any of the releases (742, 743, 744) always displayed the correct current directory.

braveregan
Posts: 17
Joined: 15.09.2010, 18:30

Re: Build 744: Sets wrong current directory for executed fil

#3 Post by braveregan » 21.04.2017, 20:37

yes, the shortcut of a program will use freecommander installation folder as the start in folder if not pre-defined. this but started from version 744

Zorkoff
Posts: 94
Joined: 10.05.2011, 21:14
Location: Boston, MA

Re: Build 744: Sets wrong current directory for executed fil

#4 Post by Zorkoff » 27.04.2017, 20:29

Fixed in Release 745

Thank you Marek for the quick fix.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests