![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #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 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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? > 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 Specs![]() |
![]() |
| 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 | |||