Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista General

Help with a Batch file script (FTP)

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 07-31-2008   #1 (permalink)
Newbie


Join Date: Dec 2007
Vista Ultimate x64
 
Rep Power: 7
MariusK is on a distinguished road
  MariusK is offline

Help with a Batch file script (FTP)

Well, I'm sitting here and can't this to work right.
Here's what I want to do:
- Login to a ftp server
- Download qconsole.log from demott
- Upload the same file to another folder at the remote server. (/logs)

Then the next thing:

I want then to upload this file from /logs to another FTP server, could anyone give me an example how to do that? Anyway here's my code:

Script.bat

Code:
FTP.EXE -s:SCRIPT.TXT
Script.txt:

Code:
open **.***.**.*** (IP)
******** (USERNAME)
******** (PASSWORD)
lcd c:\logs
quote PASV
cd /demott
quote PASV
get qconsole.log
cd /demott/logs
quote PASV
put qconsole.log

My System SpecsSystem Spec
Old 07-31-2008   #2 (permalink)
Peter Foldes
Guest


 

Re: Help with a Batch file script (FTP)

You be better off reposting this to the scripting group

news://msnews.microsoft.com/microsof...rver.scripting


--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"MariusK" <guest@xxxxxx-email.com> wrote in message news:49cf7433ebb6e477277467f41dc8f8de@xxxxxx-gateway.com...
Quote:

>
> Well, I'm sitting here and can't this to work right.
> Here's what I want to do:
> - Login to a ftp server
> - Download qconsole.log from demott
> - Upload the same file to another folder at the remote server. (/logs)
>
> Then the next thing:
>
> I want then to upload this file from /logs to another FTP server, could
> anyone give me an example how to do that? Anyway here's my code:
>
> Script.bat
>
>
> Code:
> --------------------
> FTP.EXE -s:SCRIPT.TXT
>
> --------------------
> Script.txt:
>
>
> Code:
> --------------------
> open **.***.**.*** (IP)
> ******** (USERNAME)
> ******** (PASSWORD)
> lcd c:\logs
> quote PASV
> cd /demott
> quote PASV
> get qconsole.log
> cd /demott/logs
> quote PASV
> put qconsole.log
> --------------------
>
>
> --
> MariusK
My System SpecsSystem Spec
Old 07-31-2008   #3 (permalink)
Synapse Syndrome
Guest


 

Re: Help with a Batch file script (FTP)

"MariusK" <guest@xxxxxx-email.com> wrote in message
news:49cf7433ebb6e477277467f41dc8f8de@xxxxxx-gateway.com...
Quote:

>
> Well, I'm sitting here and can't this to work right.
> Here's what I want to do:
> - Login to a ftp server
> - Download qconsole.log from demott
> - Upload the same file to another folder at the remote server. (/logs)
>
> Then the next thing:
>
> I want then to upload this file from /logs to another FTP server, could
> anyone give me an example how to do that?
>
I have found it easier to use this client called WebDrive that can make an
FTP server appear as a LAN network drive, when doing scheduled tasks with
Robocopy. It's not free though.

http://www.webdrive.com/products/webdrive/index.html

ss.


My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running batch file from Powershell script Varun Bansal PowerShell 2 09-27-2007 12:09 PM
Call powershell script via Batch-File kr1999@gmx.de PowerShell 2 07-02-2007 11:50 AM
Batch Script jon PowerShell 1 12-01-2006 08:30 PM
How to run PS script with parameters from a batch file =?Utf-8?B?Um9tYW4gS3V6bWlu?= PowerShell 1 09-09-2006 02:35 PM
How to run PS script with parameters from cmd batch file? =?Utf-8?B?Um9tYW4gS3V6bWlu?= PowerShell 5 07-22-2006 11:00 AM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
Designer Media 2005-2008

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 39 40 41 42 43 44 45 46 47 48 49 50 51