Solved

FTP Automation

Posted on 2006-07-18
10
275 Views
Last Modified: 2010-04-30
Hi There,

I would like to setup a script or a batch file on my PC to automate FTP from one directory on MY pc to another Directory on another PC

So the file is called ftp.txt and is stored in c:\ftpfolder on machine id 10.10.10.10, Username & password is test & test

I want to ftp the file to c:\ftpdestination on machine 10.10.10.11, Username & password is test & test

Whats the best way to do this......I need step by step instruction please.

Can you help.

P.s If I wanted this to run every 30mins......how would I do this, again step by step please?

Urgent!!!!

Thanks
0
Comment
Question by:columcusack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17130221
add this to the file called send.txt and put it into c:\ftpfolder

open 10.10.10.11
user test test
put "c:\ftpfolder\ftp.txt"
close
bye


put this command on your scheduler and start every 30 min


ftp.exe -nvi -s:"c:\ftpfolder\send.txt"
0
 
LVL 1

Author Comment

by:columcusack
ID: 17130536
I'm using a windows xp machine.  

How do I add "ftp.exe -nvi -s:"c:\ftpfolder\send.txt" to my scheduler?
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17130719
you may want to put on another bat file and add that bat file into scheduler?->
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:columcusack
ID: 17130751
Thanks,

so do I put this below into the bat file?

open 10.10.10.11
user test test
put "c:\ftpfolder\ftp.txt"
close
bye

Do I call it ftp.bat and sace it to the c:?
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17130783
no

add this to the file called send.txt and put it into c:\ftpfolder

open 10.10.10.11
user test test
put "c:\ftpfolder\ftp.txt"
close
bye

add this to the file called ftp.bat and put it into c:\ftpfolder

ftp.exe -nvi -s:"c:\ftpfolder\send.txt"

put this command on your scheduler and start every 30 min

"c:\ftpfolder\ftp.bat"
0
 
LVL 1

Author Comment

by:columcusack
ID: 17130918
ok....let me recap for you..

I have this saved as ftp.txt in c:\ftpfolder

open 10.202.1.74
user ccusack password
put "c:\ftpfolder\ftp.txt"
close
bye

I then have a bat file called ftp.bat saved in c:\ftpfolder with the follwoing command saved in it

ftp.exe -nvi -s:"c:\ftpfolder\ftp.txt

I then called my scheduler in windows control panel and selected the bat file from c:\ftpfolder\ftp.bat to run.

I want my files to be dropped in c:\ftpto

Am i close?

0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17131009
>> I want my files to be dropped in c:\ftpto

what file?

>>Am i close?
yes

try to run this line
ftp.exe -nvi -s:"c:\ftpfolder\ftp.txt

from the command prompt and make sure ftp works
0
 
LVL 1

Author Comment

by:columcusack
ID: 17131112
lets say a file called colum.txt..............should I put that in c:\ftpfolder??



C:\Documents and Settings\ccusack>ftp.exe -nvi -s:"c:\ftpfolder\ftp.txt
ftp> open 10.202.1.74
ftp: connect :Unknown error number
ftp> user ccusack password
Not connected.
ftp> put "c:\ftpfolder\ftp.txt"
Not connected.
ftp> close
Not connected.
ftp> bye
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 17131224
bring up the command prompt and try ftp first

your 10.202.1.74 node needs to enable ftp server
0
 
LVL 1

Author Comment

by:columcusack
ID: 17131272

C:\Documents and Settings\ccusack>ftp
ftp> open 10.136.22.22
Connected to 10.136.22.22.
220 snss1a FTP server (Version 1.1.214.4 Mon Feb 15 08:48:46 GMT 1999) ready.
User (10.136.22.22:(none)):


FTP works......., I just want to ftp them between folders,
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question