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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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.. |
| Sponsored Links | ||
|
|
|
||||
|
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
Code:
"c:\windows\system32\ftp.exe -s:ftp.txt.bat"
__________________
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 |
|
|||
|
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.... |
|
||||
|
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" 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. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |