Solved

automatically send a file from my share directory to a ftp site.

Posted on 2007-03-28
7
168 Views
Last Modified: 2010-04-13
My Operating System is Windows 2000.  I need to automatically send a file from my share directory to a ftp site.  I need to use MS Schedule Task to run this process daily @ 6am EST.  Please help as I am not familiar with .bat files/setup, etc.

Path contains folder to send = R:\\jax\dept\"PRogram1.csv"
FTP site = ftp:\\ftsmur1\VVG\jax\
My Login is anonymous


 
0
Comment
Question by:smcfarla
  • 4
  • 2
7 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18809363
Just schedule this command to run at 6am

ftp -s:c:\putfile.scr


PutFile.scr would contain the following
open ftsmur1
user
guest
guest
cd VVG\jax
put R:\\jax\dept\"PRogram1.csv"
quit


http://support.microsoft.com/kb/96269 gives greater detail
0
 
LVL 6

Expert Comment

by:kane77573
ID: 18810204
Yep follow Sir Bounty he has this one tied down
0
 

Author Comment

by:smcfarla
ID: 18812142
how do i schedule the command to run?  What application file do I need to open "PutFile.scr"?  Please help...
0
Are your end users making ugly email signatures?

Have you left it up to your end users to create their own email signatures? Are they forgetting to add the company logo or using garish font colors? Take control and ensure all users have the same email signature.

 
LVL 67

Expert Comment

by:sirbounty
ID: 18812460
1) Putfile.scr can really be 'anything'...I just used that as an example - the .scr denotes that it's a script, but it could just as easily be test.txt and still work, provided the ftp -s: points to that name

2) the schedule task can be done via the gui, or command line:

schtasks /create /ru system /sc daily /st 06:00:00 /tn FTPScript /tr "ftp -s:c:\putfile.scr"

should do it...
0
 

Author Comment

by:smcfarla
ID: 18812690
I understand how to create the .scr file {Thanks!!}
When I open a New Task (from Scheduled tasks), Where do I type my code?
Here are my options:
1. Run:
2. Start in:

I assume that I put the code in the "RUN:" option, is this right?
RUN:  schtasks /create /ru system /sc daily /st 06:00:00 /tn FTPScript /tr "ftp -s:c:\putfile.scr"

And  do I put the New Task.job location in the "Start in:" option?
Start in:  C:\\WNDOWS\Tasks\New Task.job

Sorry, this is a new experience for me.
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18813000
You can leave start in blank...it'll default to the path
You would place it in the run, but the command I gave you was to do it from the command line.
If doing it from the GUI (Scheduled tasks) - place this in the "Run" line:

c:\YourFile.bat
(where YourFile.bat is another file containing the line:

ftp -s:c:\putfile.scr

0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18813032
Happy to help - thanx for the grade! :^)
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now