Starting firefox in C:\Program Files instead of...
Moderators: Hacker, petermad, Stefan2, white
Starting firefox in C:\Program Files instead of...
I noticed some strange behaviour today. I wanted to start firefox from command line in TC. It was a ff3.1 beta in a different directory (and drive) than the stable version wich is in "C:\Program Files\Firefox\". But I couldn't do it. TC always started the one in "C:\Program Files\Firefox\". Why could this be?
The workin folder was wich ff3.1 was in of course.karlchen wrote:Hello, Avada.
Which folder was your current working folder inside T.C. when you used the T.C. commandline?
What exactly did you type inside the T.C. commandline?
What happens if you
+ open cmd.exe
+ "cd" to the same folder
+ type exactly the same command?
Karl
The command was "firefox.exe -p --no-remote" when I first noticed it. Of course it happens if I simply type "firefox.exe"
If I use the same command in cmd ff3.1 starts, as it should in TC.
TC:
Image: http://www.imageocean.net/images/89g62tal1etifgda1ei2.png
CMD:
Image: http://www.imageocean.net/images/wqmi6l9sk6v3n3lrvop.png
Hi, Avada.
Sorry to say, yet, the answers which you give do not answer any of the questions which I asked too clearly.
The two Process Explorer screenshots do not really show what has been done in order to launch the two processes beyond doubt.
Yet, the screenshot labelled "TC" shows that the commandline which was launched read
There is no hint that T.C. has not done exactly what it has been instructed to do. So by the looks of your screenshots, you were in the right folder inside T.C., but you typed the wrong commandline.
Cheers,
Karl
Sorry to say, yet, the answers which you give do not answer any of the questions which I asked too clearly.

The two Process Explorer screenshots do not really show what has been done in order to launch the two processes beyond doubt.
Yet, the screenshot labelled "TC" shows that the commandline which was launched read
This strongly suggests that you yourself have typed exactly this commandline inside the T.C. commandline box."C:\Program files\Firefox\Firefox.exe" -p --no-remote
There is no hint that T.C. has not done exactly what it has been instructed to do. So by the looks of your screenshots, you were in the right folder inside T.C., but you typed the wrong commandline.
Cheers,
Karl
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I have no idea either what is going on inside of Windows here. Maybe you can start the one in the current directory with
.\firefox.exe
instead of just
firefox.exe
.\firefox.exe
instead of just
firefox.exe
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
This is caused by a registry key:dott wrote:This happens (I suppose) if firefox is one of the "Default Programs"
http://weblogs.asp.net/whaggard/archive/2004/04/11/111232.aspx wrote:... a call to ShellExecute, which I guess is not too surprising. The next thing I wanted to find out was exactly how the commands are resolved. The following is an ordered list of how they are resolved ([1]):
* The current working directory
* The Windows directory (no subdirectories are searched)
* The Windows\System32 directory
* Directories listed in the PATH environment variable
* The App Paths registry key
...
Code: Select all
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe]
@="C:\\Program Files\\Mozilla Firefox\\firefox.exe"
"Path"="C:\\Program Files\\Mozilla Firefox"
Holger
Please also note that if you changed into the Firefox 3.1 dir by pressing Tab (switching from the other panel) instead of by navigating into it then the current directory remains to be set to the one of the other panel.
HTH
Roman
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Please also note that if you changed into the Firefox 3.1 dir by pressing Tab (switching from the other panel) instead of by navigating into it then the current directory remains to be set to the one of the other panel.





License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
dott,
Hm, try this experiment:
Left: c:\Left
Right: c:\Right <- active panel
Inside the right panel, enter Subdir:
Left: c:\Left
Right: c:\Right\Subdir <- active panel
Press Tab:
Left: c:\Left <- active panel
Right: c:\Right\Subdir
Now go to Configuration - Options - Plugins - File system plugins - Configure - Add.
Here the dialog opens with C:\Right\Subdir instead of c:\Left.
Roman
Hm, try this experiment:
Left: c:\Left
Right: c:\Right <- active panel
Inside the right panel, enter Subdir:
Left: c:\Left
Right: c:\Right\Subdir <- active panel
Press Tab:
Left: c:\Left <- active panel
Right: c:\Right\Subdir
Now go to Configuration - Options - Plugins - File system plugins - Configure - Add.
Here the dialog opens with C:\Right\Subdir instead of c:\Left.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
I did what I said I did.karlchen wrote:Hi, Avada.
Sorry to say, yet, the answers which you give do not answer any of the questions which I asked too clearly.![]()
The two Process Explorer screenshots do not really show what has been done in order to launch the two processes beyond doubt.
Yet, the screenshot labelled "TC" shows that the commandline which was launched readThis strongly suggests that you yourself have typed exactly this commandline inside the T.C. commandline box."C:\Program files\Firefox\Firefox.exe" -p --no-remote
There is no hint that T.C. has not done exactly what it has been instructed to do. So by the looks of your screenshots, you were in the right folder inside T.C., but you typed the wrong commandline.
Cheers,
Karl
It starts the on in the current directory. But I have to say it's weird an confusing that tc starts something else than it shows.ghisler(Author) wrote:Sorry, I have no idea either what is going on inside of Windows here. Maybe you can start the one in the current directory with
.\firefox.exe
instead of just
firefox.exe
I think you're right. When I changed the name of the key "firefox.exe" TC started the one in the current directory. Also I could start all the programs that appeared in "App Paths".HolgerK wrote: This is caused by a registry key:
http://weblogs.asp.net/whaggard/archive/2004/04/11/111232.aspx wrote:... a call to ShellExecute, which I guess is not too surprising. The next thing I wanted to find out was exactly how the commands are resolved. The following is an ordered list of how they are resolved ([1]):
* The current working directory
* The Windows directory (no subdirectories are searched)
* The Windows\System32 directory
* Directories listed in the PATH environment variable
* The App Paths registry key
...Regards,Code: Select all
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe] @="C:\\Program Files\\Mozilla Firefox\\firefox.exe" "Path"="C:\\Program Files\\Mozilla Firefox"
Holger
Also I noticed that XP's run dialog behaves the same way. But I think it would be better if TC behaved like CMD and wouldn't check the keys in "App Paths".
Hi.
Has not occurred to me because there are only different portable Firefox version here. Hence the "Firefox.exe" string value does not exist here inside "App Paths" and does not cause any confusion.
Well, at least, two things have been cleared up:
+ You did not commit a mistake.
+ T.C. did not commit a mistake.
And you know how to avoid the issue now.
Kind regards,
Karl
This is mean, though a documented thing.HolgerK wrote:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe]
@="C:\\Program Files\\Mozilla Firefox\\firefox.exe"
"Path"="C:\\Program Files\\Mozilla Firefox"

Has not occurred to me because there are only different portable Firefox version here. Hence the "Firefox.exe" string value does not exist here inside "App Paths" and does not cause any confusion.
This is debatable: a lot of users complain, because T.C. does not behave like Explorer in all aspects. Implementing your request would certainly provoke complaints/requests like: Why can I invoke Firefox by simply typing "firefox.exe" inside Explorer, but not in T.C.? T.C. should respect the value of the "App Paths" regkey.avada wrote:it would be better if TC behaved like CMD and wouldn't check the keys in "App Paths".
Well, at least, two things have been cleared up:
+ You did not commit a mistake.
+ T.C. did not commit a mistake.
And you know how to avoid the issue now.

Kind regards,
Karl
I think that TC doesn't behave like explorer is good thing. Using explorer is inefficient and annoying at times. And using a button for firefox is more conveniet than typing a command. Also, with explorer it doesn't work. Only with the run dialog.karlchen wrote:This is debatable: a lot of users complain, because T.C. does not behave like Explorer in all aspects. Implementing your request would certainly provoke complaints/requests like: Why can I invoke Firefox by simply typing "firefox.exe" inside Explorer, but not in T.C.? T.C. should respect the value of the "App Paths" regkey.
Well, at least, two things have been cleared up:
+ You did not commit a mistake.
+ T.C. did not commit a mistake.
And you know how to avoid the issue now.![]()
Kind regards,
Karl