nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Windows FTP Upload Script and Scheduled Job

This is a discussion on Windows FTP Upload Script and Scheduled Job within the Windows Xp/2000/2003 server administration forums, part of the The Lounge category; I think this is an easy script, but I don't even know the first place to start researching how. I ...


Go Back   nixCraft Linux Forum > The Lounge > Windows Xp/2000/2003 server administration

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-28-2008, 08:28 AM
Junior Member
User
 
Join Date: Jun 2008
My distro: N/A
Posts: 4
Rep Power: 0
mattslyk is on a distinguished road
Default Windows FTP Upload Script and Scheduled Job

I think this is an easy script, but I don't even know the first place to start researching how.

I am trying to periodically (every 30 minute upload a local file (whose name doesn't change) to an FTP server.

Here's what I think I need to do:

Download FTPput
Type some stuff into the box
Watch it work

Can you guys help me to fill in the details? I'm on Windows XP Pro..
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-28-2008, 08:48 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 964
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default Windows FTP Upload Script and Scheduled Job

Welcome to nixCraft forum!

Do you want to automate ftp stuff from Windows XP box or Debian Linux box?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 06-28-2008, 09:31 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: N/A
Posts: 4
Rep Power: 0
mattslyk is on a distinguished road
Default

Windows Box -- Lemme update my profile...
Reply With Quote
  #4 (permalink)  
Old 06-28-2008, 09:32 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: N/A
Posts: 4
Rep Power: 0
mattslyk is on a distinguished road
Default

Aw hell, this is a linux forum. I win the award for idiot of the year.
Reply With Quote
  #5 (permalink)  
Old 06-29-2008, 02:13 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 576
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default Windows XP script ftp commands

Heh no issues, many of us deal with Windows too. Here is sample batch file called ftp.txt.bat:

Code:
    open "ftp-server-ip"
     "username"
     "password"
     cd /directory
     bin
     hash
     put "filename.zip"
     bye
Run it as follows:
Code:
"c:\windows\system32\ftp.exe -s:ftp.txt.bat"
Let us know if you need any further help. Admin should move this to Windows section.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat

Last edited by rockdalinux; 06-29-2008 at 02:14 PM. Reason: fixed typo
Reply With Quote
  #6 (permalink)  
Old 06-29-2008, 08:34 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: N/A
Posts: 4
Rep Power: 0
mattslyk is on a distinguished road
Default

Awesome -- do I run this from the FTPput command prompt or from the "run-->cmd" command prompt?

Is there any way I can schedule it to run every 30 minutes without me doing anything?

Thanks for the help....
Reply With Quote
  #7 (permalink)  
Old 06-29-2008, 09:08 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 576
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Put ftp.txt.bat in c:\ or d:\ for easy access. If other users going to use your system and if you don't want to see them your password put in your own home folder.

You need to use Scheduled Tasks utility under Windows Xp / vista.
To open Scheduled Tasks, Start > All Programs > Accessories > System Tools > Scheduled Tasks. You need to specify command as task >

Code:
"c:\windows\system32\ftp.exe -s:c:\ftp.txt.bat"
Save the changes and click the Schedule tab > Advanced > Repeat task check box, and then specify the number of minutes or hours in which you want the task to be repeated.

Read help for more or see official docs for more info - How to modify scheduled tasks in Windows XP
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat

Last edited by rockdalinux; 06-29-2008 at 09:10 PM.
Reply With Quote
  #8 (permalink)  
Old 06-30-2008, 07:04 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 964
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

moved to windows forum.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux Shell script to mount remote windows share angelus_kit Shell scripting 2 09-06-2007 07:18 PM
FTP resume upload shankar100 Web servers 2 02-23-2007 01:06 PM
FTP UPload Jaggu Linux software 1 08-29-2006 07:51 PM
cant delete scheduled task in my system harigiri Windows Xp/2000/2003 server administration 1 04-16-2006 12:08 AM


All times are GMT +5.5. The time now is 10:59 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36