Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Help with a Batch file script (FTP)

Reply
 
Old 07-31-2008   #1 (permalink)


Vista Ultimate x64
 
 

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


 
 

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


 
 

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

Thread Tools


Similar Threads
Thread Forum
batch file / script to replace information VB Script
How can I play a Wav file from batch/cmd script? Vista performance & maintenance
Running batch file from Powershell script PowerShell
How to run PS script with parameters from a batch file PowerShell
How to run PS script with parameters from cmd batch file? PowerShell


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 Ltd

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