nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Windows Xp/2000/2003 server administration Discuss all about the Microsoft Windows operating systems. You are free to talk about any issues related to Windows administration, networking, services, and other stuff, ask your questions, or share your tips with community.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-06-2008, 08:28 AM
Junior Member
User
 
Join Date: Jun 2008
OS: N/A
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 minutes) 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
  #2 (permalink)  
Old 28-06-2008, 08:48 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 28-06-2008, 09:31 PM
Junior Member
User
 
Join Date: Jun 2008
OS: N/A
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mattslyk is on a distinguished road
Default

Windows Box -- Lemme update my profile...
Reply With Quote
  #4 (permalink)  
Old 28-06-2008, 09:32 PM
Junior Member
User
 
Join Date: Jun 2008
OS: N/A
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 29-06-2008, 02:13 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.

Last edited by rockdalinux; 29-06-2008 at 02:14 PM. Reason: fixed typo
Reply With Quote
  #6 (permalink)  
Old 29-06-2008, 08:34 PM
Junior Member
User
 
Join Date: Jun 2008
OS: N/A
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 29-06-2008, 09:08 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.

Last edited by rockdalinux; 29-06-2008 at 09:10 PM.
Reply With Quote
  #8 (permalink)  
Old 30-06-2008, 07:04 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38