Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Howto use FTP to send GIF to a list of websites.  (Read 3862 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Howto use FTP to send GIF to a list of websites.
« on: March 18, 2018, 01:34:41 PM »
Here is my problem.
I am setting up seven web sites with just very simple ine page welcome screen. Nothing very fancy. Very plain. A fig image ought to have a transparent background. My bad. So I fixed the image, now I have to send it to the arrt directory in each web site.

Yes, I should have used a better web builder. My bad. I should know better.

So, how do I FTP to a list of web sites to upload just one GIF image? Is there an easy way to do this in batch. I am very clumzy when I try to use the GUI of my FTP client. A lot of hazzle and I make mistakes.

I already have a list of the site names and they all have a directory named art that holds my GIF files.
I need a batch file I can cal from the batch that has the list.
Let's name if _ftp-job.bat
It will get %1 at the site name and %2 as the  user name and %3 as the password.
So, how do I write the ftp command inside of _ftp-job.bat?
Thanks for nay help.  :)




patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Howto use FTP to send GIF to a list of websites.
« Reply #1 on: March 18, 2018, 03:10:01 PM »
It would be better if you stated what yer usin to build these sites...then we can figure out the FTP options...
" Anyone who goes to a psychiatrist should have his head examined. "

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Howto use FTP to send GIF to a list of websites.
« Reply #2 on: March 18, 2018, 07:25:47 PM »
This sites are simple HTML. All have the same layout and almost all of the files  the are the same. The sites have UNIX like structure, the main directory is
  public_html
The browser will be directed there by the server and the browser will  find the index.html file.  It makes reference to a GIF that needs to be updated. No need to change index.html. I will just overwrite the GIF with the correct file.
Inside public_html are three directories or interest.
  art
  images
  tiles
The file small_dog.gif has been altered an is in the art directory.
Each web site has  different  name, of course. And each must have a user name and pass word. User name must always be unique.

The file in this job is always small-dog.gif in directory art in the public_html area on a standard Linux or UNIX server. The FTP port is 21

I am not going to use the actual  data.
But here would be a hypothetical list of five websites. [
-----
babytree.com batman 23$wasrit
mycatspaw.win catgirl Qwe&*55
redbulb.us rosy Ynot$23!.
redbulb.info rosy2 Ynot$23!.
wintersalt.net john qwerty123
------
The above is URL, user, password.
A space is used as delimiter, the password might have any printable char.
So how do I write a batch file to use the above?
Thanks.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Howto use FTP to send GIF to a list of websites.
« Reply #3 on: March 18, 2018, 07:28:48 PM »
Thats kinda cool how you never answered the question...
" Anyone who goes to a psychiatrist should have his head examined. "