+FTPOpen from command-line doesn't seem to work

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Abmea
Junior Member
Junior Member
Posts: 19
Joined: 2013-10-02, 15:45 UTC

+FTPOpen from command-line doesn't seem to work

Post by *Abmea »

When you use FTPOpen from the command-line, e.g. TotalCommand.exe FTPOpen:MyStoredConnection, the connection is not opened.

If TC was already running (single instance mode) then you get a "select another drive" pop-up. If TC wasn't running then it just start as default.

"MyStoredConnection" is a stored FTP connection that works fine.
Also, when FTPOPEN it is called from button like "FTPOPEN MyStoredConnection" (notice the space) it works just fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, works fine here! Do you get any error message?
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Re: ?FTPOpen from command-line doesn't seem to work

Post by *Hurdet »

Abmea wrote:If TC was already running (single instance mode) then you get a "select another drive" pop-up.
I confirm this.
Abmea
Junior Member
Junior Member
Posts: 19
Joined: 2013-10-02, 15:45 UTC

Post by *Abmea »

No, no error message other than the one I mentioned.

Could you post the exact command that works for you, I feel like Hurdet and I are misinterpreting the syntax somehow.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I cannot reproduce the problem with a new instance of TC. However, I can when you use /O or /T parameters (open in running instance or as new tab). I will add these two cases to the next beta.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

2Abmea
Do you use an unregistered TC? Some time ago I found out that saved FTP connections can't be opened if TC is unregistered or used without wincmd.key (for testing purposes).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Abmea
Junior Member
Junior Member
Posts: 19
Joined: 2013-10-02, 15:45 UTC

Post by *Abmea »

It's a registered copy.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Does the connection name contain any special characters? Or is it in a subfolder of the Ctrl+F dialog?
Author of Total Commander
https://www.ghisler.com
Abmea
Junior Member
Junior Member
Posts: 19
Joined: 2013-10-02, 15:45 UTC

Post by *Abmea »

No, no special chars. The connection is a top-level node in the CRTL-F dialog.

You've already reproduced it with /O or /T params. Perhaps it's related to the single-instance mode in which I use TC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Perhaps it's related to the single-instance mode in which I use TC.
Indeed that's just like when you specify the /O parameter. This will work when I have fixed the /O problem.

Try launching TC with /N parameter to force a new instance.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you retry with beta 6, please?
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

now it work.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks for trying it!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: +FTPOpen from command-line doesn't seem to work

Post by *white »

Abmea wrote:When you use FTPOpen from the command-line, e.g. TotalCommand.exe FTPOpen:MyStoredConnection, the connection is not opened.
I can only get this to work with 8.5 and using /O or single instance option and a TC window must be already open.

Tested 32 bit TC versions with Windows XP.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Cannot reproduce, works just fine here. Please note:
1. You need to put the entire parameter in double quotes if it contains spaces, e.g.
TotalCmd.exe "FTPOpen:My Stored Connection"

2. If the connection is in a subfolder, you need to pass the entire name as shown in the details of the connection, e.g.
TotalCmd.exe "FTPOpen:Folder|My Stored Connection"
Author of Total Commander
https://www.ghisler.com
Post Reply