Computing.Net > Forums > Web Development > Automatic Uploading

Automatic Uploading

Reply to Message Icon

Original Message
Name: mking (by mkingrey)
Date: August 31, 2005 at 08:08:18 Pacific
Subject: Automatic Uploading
OS: XP
CPU/Ram: xp
Comment:

Does anyone know of a good way to have an FTP program automatically upload to a web server periodically? I have seen a few apps that are supposed to do this, but it seems that Cute or WSFTP would able to be set up for such a task.


Report Offensive Message For Removal


Response Number 1
Name: crandall87
Date: August 31, 2005 at 16:23:36 Pacific
Subject: Automatic Uploading
Reply: (edit)

do you want one that does it on a timer or something. i know dreamweaver can be set to upload a file everytime you save.

My Website


Report Offensive Follow Up For Removal

Response Number 2
Name: kk7av
Date: September 2, 2005 at 11:14:44 Pacific
Subject: Automatic Uploading
Reply: (edit)

How about a small batch file and the built-in Windows task scheduler to call it? That's how I'd do it if I were using a Windows system and wanted automatic/scheduled uploads. Just a suggestion...

Save the following as, "uploader.bat":

@ECHO OFF
ftp -s:ftpsettings.txt
end

Then, save the following in a textfile called, "ftpsettings.txt":

open server_host
your_username
your_password
lcd C:\path\to\dir\with\local\file\
bin
hash
prompt
cd /path/to/remote/www_root
put your_file
quit


Obviously you'll need to adjust it with your information, etc. Make sure the ftpsettings.txt file is located in the same directory as the uploader.bat file. Once you can successfully run the batch file and have your file get uploaded by it, all you have left is to schedule it to run automatically with the Windows task scheduler. Good luck!


k_Rob - kk7av


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Automatic Uploading

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge