Author Topic: Open FTP connection by command line  (Read 13460 times)

Sempervivum

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Open FTP connection by command line
« on: October 29, 2015, 20:32:18 »
Hallo,
I would appreciate if it was possible to open an FTP connection by the command line so that I can create shortcuts on my desktop for my FTP sites.
I tried -R=FTP:\<site name> but this didn't work. My host name is equal to my site name.
Best regards - Ulrich

Sempervivum

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Re: Open FTP connection by command line
« Reply #1 on: October 29, 2015, 21:41:21 »
In the meantime I found in the docu how to define user commands. I used this for opening an FTP site:
import("FSFTPScript");
@var $ftp = FTPConnect("ulrichbangert.de");
It works so far but unfortunately it doesn't open the the site in an explorer panel but in the FTP panel below, so that I cannot navigate through the site.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: Open FTP connection by command line
« Reply #2 on: October 29, 2015, 22:02:00 »
FTP panel ? there is no such thing.
But the log view for the ftp might be shown if that was you mean.

Raw FTP commands in MultiScript will not assing the ftp connection to a device.
You need to have a bookmark of the ftp site then you can access it llike a filesytsem like FTP:<BookMarkName>

like

Code: [Select]
MC.Explorer.Goto PATH=FTP:\MySite


Sempervivum

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Re: Open FTP connection by command line
« Reply #3 on: October 30, 2015, 00:22:37 »
Hallo Mathias,
thanks for the advice. Yes, I meant the log view for the ftp. I have a german version and didn't find this in the docu.

Your posting pointed me into the right direction and for my initial intention I didn't need a script. I could address my FTP sites by their bookmarks in my ini file as well:
Code: [Select]
[PANEL_4]
Path=FTP:\Ace3
Side=R
ShowTree=1

If MC featured synchronized browsing for FTP additionally I would be happy.

Thanks again and best regards - Ulrich