Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I want to ftp a file from windows to unix server can we do it with a batch script if yes let me know
I tried this piece of action
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\comp>
cd c:\temp
ftp <host name>
Connected to <host name>
220 <host name> FTP server (Version x.x Tue sept 22 21:20:07 CDT 2008) ready.
User (<host name>:(none)): your_userid
331 Password required for your_userid.
Password:
230 User your_userid logged in.ftp>pwd
/home
ftp> cd /temp/filefolder
ftp>pwd
/temp/filefolder
ftp> put test2.txt test1.txtI am getting the following error
200 Port command successful
553 test1.txt :permission denied.Please help me in making this process as batch script and what is exactly teh error.
Thanks
In AdvanceThanks In Advance

553 test1.txt :permission denied.
The account you're using on the UNIX side doesn't have the file permissions to add test1.txt.

Once you get permission:
=================================
@echo off
setLocal EnableDelayedExpansion> #.ftp echo o mysite.com
>> #.ftp echo username
>> #.ftp echo password
>> #.ftp echo cd /files
>> #.ftp echo put test2.txt test1.txt
>> #.ftp echo byeftp -s:#.ftp
=====================================
If at first you don't succeed, you're about average.M2

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |