mardi 30 août 2016

Tip geek: send files via FTP on a right click


Image result for FTP

Little explanation on how to replace your FTP client on Windows from a batch file that will do the same ... and better.

It is a small geek happiness. Replace a tool on the market by a good old family script. The script was purchased from How to Geek (see the source at the bottom of this article) and can be downloaded here. You must then edit to edit a few variables.

Changing the script

Log in


There are 3 variables needed to connect, respectively in lines 21, 22 and 25.



  • Server: the FTP address of the server you want to connect (ftp.votresite.com)
  • Username: The username for the FTP
  • Password: the FTP password. If you do not want to enter the password "hard" in the script, and want it to be asked every time, comment out the line 25 writing REM beginning of the line, and uncomment the line below, like that:

remote subdirectory

The acs you wish to send your files in a directory of your FTP, not the root, use the lines 35-37 (one line per directory). You can of course use more lines if necessary. For example, if you want to send your files in the / www / wordpress / wp-content / uploads /, you will have the following lines:


Installation

To use this script via the right mouse click ("send to" menu), you need to copy the script to the following directory: C: \ Users \ [your profile] \ AppData \ Roaming \ Microsoft \ Windows \ SendTo . If you have multiple FTP / directories, you are free to rename the file and to place multiple copies in this directory.

Limitations

There are to script some limitations:

  • The files will be overwritten without warning. If you want to import a file whose name already exists in the target directory, the last file will overwrite the previous one. Stick to the said.
  • You can send only files, not directories
  • Already mentioned, but the extent of the FTP details are hard in the FTP, you can achieve in one at a time. If you want to target more than one directory, or more than one server, it will duplicate the script as many times as necessary.
Source: How to Geek

Aucun commentaire:

Enregistrer un commentaire