Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Help with a Batch file script (FTP)

Reply
Thread Tools Display Modes

Help with a Batch file script (FTP)

 
 
MariusK
Guest
Posts: n/a

 
      07-31-2008

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
 
Reply With Quote
 
 
 
 
Peter Foldes
Guest
Posts: n/a

 
      07-31-2008
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" <> wrote in message news:...
>
> 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

 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      08-01-2008
"MariusK" <> wrote in message
news:...
>
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file help DarthRevan561 Windows Vista General Discussion 6 02-02-2008 12:00 AM
Batch file Bob Windows Vista General Discussion 2 01-20-2008 12:39 PM
Batch file Bob Windows Vista File Management 0 01-06-2008 07:39 PM
batch file calling exe file problem JPS Windows Vista Security 1 12-20-2007 12:18 AM
Need help with batch file n o s p a m p l e a s e Windows Vista General Discussion 11 10-14-2007 06:35 AM



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 52 53 54 55 56 57 58 59