Results 1 to 9 of 9

Thread: Windows FTP Upload Script and Scheduled Job

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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..

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    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?
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Windows Box -- Lemme update my profile...

  4. #4
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Aw hell, this is a linux forum. I win the award for idiot of the year.

  5. #5
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    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.
    Last edited by rockdalinux; 29th June 2008 at 03:14 PM. Reason: fixed typo
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  6. #6
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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....

  7. #7
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    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
    Last edited by rockdalinux; 29th June 2008 at 10:10 PM.
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  8. #8
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    Default

    moved to windows forum.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  9. #9
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unhappy How to transfer file from one server to another FTP server

    Hi,

    We have the logs present in our server in the format of (localhost_access_log.yyyy-mm-dd.txt). Now I have to write a script which should copy these log files to another FTP server with the format of (ServerName_Sitename.access.yyyymmdd.gz)and it should also run every day.

    Can anyone please help me on this as im new to this technique and im trying to explore things now?

    Thanks in Advance.

    Regards,
    Dawoodma

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linux Shell script to mount remote windows share
    By angelus_kit in forum Shell scripting
    Replies: 2
    Last Post: 6th September 2007, 08:18 PM
  2. FTP resume upload
    By shankar100 in forum Web servers
    Replies: 2
    Last Post: 23rd February 2007, 02:06 PM
  3. FTP UPload
    By Jaggu in forum Linux software
    Replies: 1
    Last Post: 29th August 2006, 08:51 PM
  4. cant delete scheduled task in my system
    By harigiri in forum Windows Xp/2000/2003 server administration
    Replies: 1
    Last Post: 16th April 2006, 01:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •