FreeCommander and Console2

Discussion, questions and support.
Post Reply
Message
Author
markcs
Posts: 6
Joined: 29.08.2009, 13:23

FreeCommander and Console2

#1 Post by markcs » 18.11.2009, 04:27

Hi!

I have setup FreeCommander to use Console2 instead of the normal dos box when pressing CTRL-D. I did this by setting:

DosCommandBoxSpec=c:\PathToCosole2\console.exe -d "%ActivDir%"

My problem is that the Active Directory variable is not being passed correctly and so Console2 opens from its default path. I can manually run Console2 with the -d switch and it starts in the directory I want. However, when starting from FC, it does not work.

Any ideas what I should put here instead?
Thanks

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

#2 Post by H.Seldon » 18.11.2009, 07:43

Try:

DosCommandBoxSpec=c:\PathToCosole2\console.exe -r "/k cd /d %ActivDir%"

markcs
Posts: 6
Joined: 29.08.2009, 13:23

#3 Post by markcs » 18.11.2009, 07:59

H.Seldon wrote:Try:

DosCommandBoxSpec=c:\PathToCosole2\console.exe -r "/k cd /d %ActivDir%"
I get "The system cannot find the path specified."

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

#4 Post by H.Seldon » 18.11.2009, 16:33

Assuming you replaced PathToCosole2 with the correct path to the executable, be sure to include the quotes as shown. This works beautifully for me.

markcs
Posts: 6
Joined: 29.08.2009, 13:23

#5 Post by markcs » 18.11.2009, 23:21

H.Seldon wrote:Assuming you replaced PathToCosole2 with the correct path to the executable, be sure to include the quotes as shown. This works beautifully for me.
Hmm... this is the line I have:
DosCommandBoxSpec=c:\MyPrograms\Console2\console.exe -r "/k cd /d %ActivDir%"

Console runs.. so its the correct path to the console. The path that can not be found is the Active Directory. Its as if it is not being passed to the command line.

I'm using FC version 2009.02a

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

#6 Post by H.Seldon » 19.11.2009, 03:13

Well, I was sure it worked, yesterday. However, today I get a console opening to the Console2 folder. I modified the command to "echo %ActivDir%" and it did indeed echo "%ActivDir%" instead of the path it represents. So, the variables do not appear to be recognized in this context. It does work, however, as a tool command (Extras/Favorite tools/Edit..., or shift+ctrl+y). The only difference would be entering Ctrl+number), instead of Ctrl+D).

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 43 guests