Solved

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

Posted on 2007-03-28
7
176 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
[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
  • 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
Independent Software Vendors: 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

737 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